Make test case more precise

Co-authored-by: Théophane Hufschmitt <regnat@users.noreply.github.com>
This commit is contained in:
Sebastian Ullrich 2020-11-09 17:50:51 +01:00
parent fb7735e4cf
commit 579b953231

View file

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