Skip to content

Commit

Permalink
Don't use a redirected subshell in tests/restricted.sh (fails on Free…
Browse files Browse the repository at this point in the history
…BSD)
  • Loading branch information
rhelmot committed Feb 7, 2024
1 parent 6c48eaa commit 23b03a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/functional/restricted.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ clearStore

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)
nix-instantiate --restrict-eval ./simple.nix -I src=.
nix-instantiate --restrict-eval ./simple.nix -I src1=simple.nix -I src2=config.nix -I src3=./simple.builder.sh

Expand Down

0 comments on commit 23b03a3

Please sign in to comment.