forked from lix-project/lix
Merge "tests/libcmd: set HOME to a temporary directory" into main
This commit is contained in:
commit
1d6fd94cf9
|
@ -241,6 +241,10 @@ test(
|
||||||
# No special meaning here, it's just a file laying around that is unlikely to go anywhere
|
# No special meaning here, it's just a file laying around that is unlikely to go anywhere
|
||||||
# any time soon.
|
# any time soon.
|
||||||
'_NIX_TEST_UNIT_DATA': meson.project_source_root() / 'src/nix-env/buildenv.nix',
|
'_NIX_TEST_UNIT_DATA': meson.project_source_root() / 'src/nix-env/buildenv.nix',
|
||||||
|
# Use a temporary home directory for the unit tests.
|
||||||
|
# Otherwise, /homeless-shelter is created in the single-user sandbox, and functional tests will fail.
|
||||||
|
# TODO(alois31): handle TMPDIR properly (meson can't, and setting HOME in the test is too late)…
|
||||||
|
'HOME': '/tmp/nix-test/libcmd-unit-tests',
|
||||||
},
|
},
|
||||||
suite : 'check',
|
suite : 'check',
|
||||||
protocol : 'gtest',
|
protocol : 'gtest',
|
||||||
|
|
Loading…
Reference in a new issue