forked from lix-project/lix
Make test case more precise
Co-authored-by: Théophane Hufschmitt <regnat@users.noreply.github.com>
This commit is contained in:
parent
fb7735e4cf
commit
579b953231
|
@ -58,7 +58,8 @@ output=$($TEST_ROOT/shell.shebang.rb abc ruby)
|
||||||
|
|
||||||
# Test 'nix develop'.
|
# Test 'nix develop'.
|
||||||
nix develop -f shell.nix shellDrv -c bash -c '[[ -n $stdenv ]]'
|
nix develop -f shell.nix shellDrv -c bash -c '[[ -n $stdenv ]]'
|
||||||
echo foo | nix develop -f shell.nix shellDrv -c cat # preserve stdin with `-c`
|
# Preserve stdin with `-c`
|
||||||
|
echo foo | nix develop -f shell.nix shellDrv -c cat | grep -q foo
|
||||||
|
|
||||||
# Test 'nix print-dev-env'.
|
# Test 'nix print-dev-env'.
|
||||||
source <(nix print-dev-env -f shell.nix shellDrv)
|
source <(nix print-dev-env -f shell.nix shellDrv)
|
||||||
|
|
Loading…
Reference in a new issue