diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2017-11-21 19:43:12 +0100 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2017-11-21 19:43:12 +0100 |
commit | 0fc3e581e0585e377d4b42e343b0487606add547 (patch) | |
tree | 170cea5c59b3df51c14028495d8c4ac15eea07cf /tests/run.sh | |
parent | d7da6c9ea9459a2fa17c3e409120c5cdfde6afdc (diff) |
tests/run.sh: Fix /build conflict when building in a sandbox
https://hydra.nixos.org/build/64519355
Diffstat (limited to 'tests/run.sh')
-rw-r--r-- | tests/run.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/run.sh b/tests/run.sh index 1ba181c9c..784d29183 100644 --- a/tests/run.sh +++ b/tests/run.sh @@ -17,7 +17,9 @@ if [[ $(uname) = Linux ]]; then # Note: we need the sandbox paths to ensure that the shell is # visible in the sandbox. - nix run --sandbox-paths '/nix? /bin? /lib? /usr?' --store $TEST_ROOT/store0 -f run.nix hello -c hello | grep 'Hello World' + nix run --sandbox-build-dir /build-tmp \ + --sandbox-paths '/nix? /bin? /lib? /usr?' \ + --store $TEST_ROOT/store0 -f run.nix hello -c hello | grep 'Hello World' path2=$(nix run --sandbox-paths '/nix? /bin? /lib? /usr?' --store $TEST_ROOT/store0 -f run.nix hello -c $SHELL -c 'type -p hello') |