mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-25 23:36:16 +02:00
tests/nix-shell: more meaningful testcase
This commit is contained in:
parent
98946e2d9c
commit
e94aa1f647
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
# Test nix-shell with ellipsis and no `inNixShell` argument (for backwards compat with old nixpkgs)
|
||||||
cat >$TEST_ROOT/shell-ellipsis.nix <<EOF
|
cat >$TEST_ROOT/shell-ellipsis.nix <<EOF
|
||||||
{ system ? "x86_64-linux", ... }:
|
{ system ? "x86_64-linux", ... }@args:
|
||||||
|
assert (!(args ? inNixShell));
|
||||||
(import $shellDotNix { }).shellDrv
|
(import $shellDotNix { }).shellDrv
|
||||||
EOF
|
EOF
|
||||||
nix-shell $TEST_ROOT/shell-ellipsis.nix --run "true"
|
nix-shell $TEST_ROOT/shell-ellipsis.nix --run "true"
|
||||||
|
|
Loading…
Reference in a new issue