tests/nix-shell: more meaningful testcase

This commit is contained in:
Maximilian Bosch 2022-06-22 22:35:48 +02:00
parent 98946e2d9c
commit e94aa1f647
No known key found for this signature in database
GPG Key ID: 091DBF4D1FC46B8E
1 changed files with 2 additions and 1 deletions

View File

@ -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"