mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-20 00:28:09 -06:00
fix: tests write temporary files under tmp/
264 TemporaryDirectory() and mkdtemp() calls without dir= wrote to the /tmp tmpfs, and a full tmpfs failed modules no change touched. The test package now points tempfile and TMPDIR at tmp/tests, and sets GIT_CEILING_DIRECTORIES there so git run in a scratch directory does not find the checkout above it. The package test asserts both.
This commit is contained in:
1 parent
9f3f1cec3b
commit
1b7ea4212f
3 files changed
+22
-7
No files matched your search
@@ -9,9 +9,11 @@ The tests hold what users and platforms rely on: a pack holds what its
|
||||
platform checks, the site states what the code does, the installer writes only
|
||||
where it should.
|
||||
|
||||
No test needs network access. Most build synthetic fixtures under the
|
||||
repository's `tmp/`, and modules that read real artifacts skip when those are
|
||||
absent. The test runner prints the count.
|
||||
No test needs network access. Most build synthetic fixtures, and every
|
||||
temporary directory lands under the repository's `tmp/tests/`:
|
||||
`tests/__init__.py` points `tempfile` and `TMPDIR` there, never at the `/tmp`
|
||||
tmpfs. Modules that read real artifacts skip when those are absent. The test
|
||||
runner prints the count.
|
||||
|
||||
## Running tests
|
||||
|
||||
|
||||
Reference in new issue
Block a user