1
0
Fork 0
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:
Audrey Dutcher 2024-02-07 10:06:55 -07:00 committed by John Ericson
parent 785c8b91de
commit 2cecff28c7

View file

@ -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"