mirror of
https://github.com/NixOS/nix.git
synced 2024-11-26 16:52:27 +00:00
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'.
|
||||
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'.
|
||||
source <(nix print-dev-env -f shell.nix shellDrv)
|
||||
|
Loading…
Reference in New Issue
Block a user