mirror of
https://github.com/NixOS/nix
synced 2025-06-24 22:11:15 +02:00
Don't use a redirected subshell in tests/restricted.sh (fails on FreeBSD)
This commit is contained in:
parent
785c8b91de
commit
2cecff28c7
1 changed files with 1 additions and 1 deletions
|
@ -6,7 +6,7 @@ clearStoreIfPossible
|
|||
|
||||
nix-instantiate --restrict-eval --eval -E '1 + 2'
|
||||
(! nix-instantiate --eval --restrict-eval ./restricted.nix)
|
||||
(! nix-instantiate --eval --restrict-eval <(echo '1 + 2'))
|
||||
TMPFILE=$(mktemp) && echo '1 + 2' >$TMPFILE && (! nix-instantiate --eval --restrict-eval $TMPFILE)
|
||||
|
||||
mkdir -p "$TEST_ROOT/nix"
|
||||
cp ./simple.nix "$TEST_ROOT/nix"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue