aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/nix-shell.sh4
-rwxr-xr-xtests/shell.shebang.sh2
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/nix-shell.sh b/tests/nix-shell.sh
index 12a0ecd03..26cc521bb 100644
--- a/tests/nix-shell.sh
+++ b/tests/nix-shell.sh
@@ -17,5 +17,5 @@ output=$(NIX_PATH=nixpkgs=shell.nix nix-shell --pure -p foo bar --run 'echo "$(f
sed -e "s|@ENV_PROG@|$(type -p env)|" shell.shebang.sh > $TEST_ROOT/shell.shebang.sh
chmod a+rx $TEST_ROOT/shell.shebang.sh
-output=$($TEST_ROOT/shell.shebang.sh)
-[ "$output" = "foo bar" ]
+output=$($TEST_ROOT/shell.shebang.sh abc def)
+[ "$output" = "foo bar abc def" ]
diff --git a/tests/shell.shebang.sh b/tests/shell.shebang.sh
index 544e28217..3dadd5915 100755
--- a/tests/shell.shebang.sh
+++ b/tests/shell.shebang.sh
@@ -1,4 +1,4 @@
#! @ENV_PROG@ nix-shell
#! nix-shell -I nixpkgs=shell.nix --option use-binary-caches false
#! nix-shell --pure -i bash -p foo bar
-echo "$(foo) $(bar)"
+echo "$(foo) $(bar) $@"