Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .nanvix/NANVIX.md
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ To start an interactive CPython session on Nanvix (standalone/microvm):
cd .nanvix/out/test && \
./bin/nanvixd.elf -bin-dir ./bin -ramfs ./cpython-rootfs.img \
-- ./bin/python3.12 \
"-i;PYTHONHOME=/ PYTHONDONTWRITEBYTECODE=1 _PYTHON_SYSCONFIGDATA_NAME=_sysconfigdata__nanvix_"
"-i;PYTHONHOME=/ PYTHONDONTWRITEBYTECODE=1 HOME=/tmp _PYTHON_SYSCONFIGDATA_NAME=_sysconfigdata__nanvix_"
```

This launches `nanvixd` in standalone interactive mode with the CPython ramfs image
Expand All @@ -217,7 +217,7 @@ To run a one-shot script instead of the REPL:
cd .nanvix/out/test && \
./bin/nanvixd.elf -bin-dir ./bin -ramfs ./cpython-rootfs.img \
-- ./bin/python3.12 \
"-B ./test_hello.py;PYTHONHOME=/ PYTHONDONTWRITEBYTECODE=1 _PYTHON_SYSCONFIGDATA_NAME=_sysconfigdata__nanvix_"
"-B ./test_hello.py;PYTHONHOME=/ PYTHONDONTWRITEBYTECODE=1 HOME=/tmp _PYTHON_SYSCONFIGDATA_NAME=_sysconfigdata__nanvix_"
```

### Running Individual Modules
Expand All @@ -228,7 +228,7 @@ To run a single test module inside the Nanvix VM:
cd .nanvix/out/test && \
./bin/nanvixd.elf -bin-dir ./bin -ramfs ./cpython-rootfs.img \
-- ./bin/python3.12 \
"-B -m test --verbose test_int;PYTHONHOME=/ PYTHONDONTWRITEBYTECODE=1 NANVIX_STANDALONE=1 _PYTHON_SYSCONFIGDATA_NAME=_sysconfigdata__nanvix_"
"-B -m test --verbose test_int;PYTHONHOME=/ PYTHONDONTWRITEBYTECODE=1 HOME=/tmp NANVIX_STANDALONE=1 _PYTHON_SYSCONFIGDATA_NAME=_sysconfigdata__nanvix_"
```

### Test Suite Status
Expand Down
2 changes: 1 addition & 1 deletion .nanvix/src/run-tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def run_batch(
]
app_env = (
f"PYTHONHOME=/ PYTHONDONTWRITEBYTECODE=1"
f" TMPDIR=/tmp"
f" HOME=/tmp TMPDIR=/tmp"
f" NANVIX_STANDALONE=1"
f" _PYTHON_SYSCONFIGDATA_NAME={SYSCONFIGDATA_NAME}"
)
Expand Down
3 changes: 0 additions & 3 deletions Lib/test/test_pathlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -1738,9 +1738,6 @@ def test_empty_path(self):
self.assertEqual(p.stat(), os.stat('.'))

@unittest.skipIf(is_wasi, "WASI has no user accounts.")
# NSKIP025 https://github.com/nanvix/cpython/issues/505
@unittest.skipIf(support.is_nanvix,
"NSKIP025: no HOME env var and no pwd module on Nanvix")
def test_expanduser_common(self):
P = self.cls
p = P('~')
Expand Down