mirror of
https://github.com/NixOS/nix.git
synced 2024-11-21 22:32:26 +00:00
tests/nix-shell: more meaningful testcase
This commit is contained in:
parent
98946e2d9c
commit
e94aa1f647
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user