aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorSebastian Ullrich <sebasti@nullri.ch>2020-11-09 17:50:51 +0100
committerSebastian Ullrich <sebasti@nullri.ch>2020-11-09 22:43:14 +0100
commit579b953231599f111dcc9fac95491458c9f6ef08 (patch)
treec3df4cc4ca91b31430597681be1699e6a7e8d040 /tests
parentfb7735e4cf3a1ee6337bf1f2ee15204bb11304b2 (diff)
Make test case more precise
Co-authored-by: Théophane Hufschmitt <regnat@users.noreply.github.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/nix-shell.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/nix-shell.sh b/tests/nix-shell.sh
index dfe8ed0c1..3b000a049 100644
--- a/tests/nix-shell.sh
+++ b/tests/nix-shell.sh
@@ -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)