aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMaximilian Bosch <maximilian@mbosch.me>2022-06-22 22:35:48 +0200
committerMaximilian Bosch <maximilian@mbosch.me>2022-06-22 22:35:48 +0200
commite94aa1f6473196f04c339f8661ee4df7b5a0d3be (patch)
treec0138a56cb8e09bd4f90cd5a7a98cf499167f3f9 /tests
parent98946e2d9c93e3558f19ee3d49deef67a98706d8 (diff)
tests/nix-shell: more meaningful testcase
Diffstat (limited to 'tests')
-rw-r--r--tests/nix-shell.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/nix-shell.sh b/tests/nix-shell.sh
index 0dc1999d8..f291c6f79 100644
--- a/tests/nix-shell.sh
+++ b/tests/nix-shell.sh
@@ -105,7 +105,8 @@ source <(nix print-dev-env -f "$shellDotNix" shellDrv)
# Test nix-shell with ellipsis and no `inNixShell` argument (for backwards compat with old nixpkgs)
cat >$TEST_ROOT/shell-ellipsis.nix <<EOF
-{ system ? "x86_64-linux", ... }:
+{ system ? "x86_64-linux", ... }@args:
+assert (!(args ? inNixShell));
(import $shellDotNix { }).shellDrv
EOF
nix-shell $TEST_ROOT/shell-ellipsis.nix --run "true"