1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-13 14:02:42 +01: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 Jörg Thalheim
parent 49b385af00
commit 8f91140253

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"