Skip to content

Commit

Permalink
cidbg
Browse files Browse the repository at this point in the history
  • Loading branch information
ac000 committed Oct 17, 2024
1 parent 75b7231 commit 163aabd
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,8 @@ jobs:

- name: Configure python3
run: |
sudo ./configure python --config=python3-config
sudo ./configure python --config=${Python_ROOT_DIR}/bin/python3-config --lib-path=$LD_LIBRARY_PATH
cat build/include/nxt_python3_mounts.h
if: steps.metadata.outputs.module == 'python'

- name: Make python3
Expand Down Expand Up @@ -351,10 +352,10 @@ jobs:
namei -l ${{ github.workspace }}
# Install python3 if not present
- uses: actions/setup-python@v5
with:
python-version: '3'
if: steps.metadata.outputs.module != 'wasm'
# - uses: actions/setup-python@v5
# with:
# python-version: '3'
# if: steps.metadata.outputs.module != 'wasm'

- name: Install pytest
run: |
Expand Down
3 changes: 3 additions & 0 deletions src/nxt_isolation.c
Original file line number Diff line number Diff line change
Expand Up @@ -790,6 +790,9 @@ nxt_isolation_prepare_rootfs(nxt_task_t *task, nxt_process_t *process)
if (nxt_slow_path(ret != NXT_OK)) {
goto undo;
}

printf("%s: mounted [%s] -> [%s]\n", __func__,
(const char *)mnt[i].src, (const char *)dst);
}

return NXT_OK;
Expand Down
4 changes: 4 additions & 0 deletions test/python/ns_inspect/wsgi.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import json
import os
import sys

try:
# Python 3
Expand All @@ -10,6 +11,9 @@


def application(environ, start_response):
print("pwd:", os.getcwd())
print("sys.path:\n", sys.path, file=sys.stdout)

ret = {
'FileExists': False,
}
Expand Down

0 comments on commit 163aabd

Please sign in to comment.