diff --git a/tests/functional/nix-shell.sh b/tests/functional/nix-shell.sh index fd3edf81a..b9625eb66 100755 --- a/tests/functional/nix-shell.sh +++ b/tests/functional/nix-shell.sh @@ -116,7 +116,7 @@ $TEST_ROOT/shell.shebang.nix mkdir $TEST_ROOT/lookup-test $TEST_ROOT/empty -cp $shellDotNix $TEST_ROOT/lookup-test/shell.nix +echo "import $shellDotNix" > $TEST_ROOT/lookup-test/shell.nix cp config.nix $TEST_ROOT/lookup-test/ echo 'abort "do not load default.nix!"' > $TEST_ROOT/lookup-test/default.nix @@ -138,10 +138,10 @@ expectStderr 1 nix-shell $TEST_ROOT/lookup-test -A shellDrv --run 'echo "it work expectStderr 1 nix-shell -I "testRoot=$TEST_ROOT" '' | grepQuiet "error.*neither .*shell\.nix.* nor .*default\.nix.* found in .*/empty" -cat >$TEST_ROOT/lookup-test/shebangscript <<"EOF" -#!/usr/bin/env nix-shell +cat >$TEST_ROOT/lookup-test/shebangscript < $TEST_ROOT/marco/shell.nix cat >$TEST_ROOT/marco/polo/default.nix <