diff --git a/tests/functional/tarball.sh b/tests/functional/tarball.sh index e59ee400e..391c21385 100644 --- a/tests/functional/tarball.sh +++ b/tests/functional/tarball.sh @@ -42,11 +42,11 @@ test_tarball() { nix-instantiate --strict --eval -E "!((import (fetchTree { type = \"tarball\"; url = file://$tarball; narHash = \"$hash\"; })) ? submodules)" >&2 nix-instantiate --strict --eval -E "!((import (fetchTree { type = \"tarball\"; url = file://$tarball; narHash = \"$hash\"; })) ? submodules)" 2>&1 | grep 'true' - nix-instantiate --eval -E '1 + 2' -I fnord=file://no-such-tarball.tar$ext - nix-instantiate --eval -E 'with ; 1 + 2' -I fnord=file://no-such-tarball$ext - (! nix-instantiate --eval -E ' 1' -I fnord=file://no-such-tarball$ext) + nix-instantiate --eval -E '1 + 2' -I fnord=file:///no-such-tarball.tar$ext + nix-instantiate --eval -E 'with ; 1 + 2' -I fnord=file:///no-such-tarball$ext + (! nix-instantiate --eval -E ' 1' -I fnord=file:///no-such-tarball$ext) - nix-instantiate --eval -E '' -I fnord=file://no-such-tarball$ext -I fnord=. + nix-instantiate --eval -E '' -I fnord=file:///no-such-tarball$ext -I fnord=. # Ensure that the `name` attribute isn’t accepted as that would mess # with the content-addressing