Skip to content

Commit

Permalink
Make test case more precise
Browse files Browse the repository at this point in the history
Co-authored-by: Théophane Hufschmitt <regnat@users.noreply.github.com>
  • Loading branch information
Kha and Théophane Hufschmitt committed Nov 9, 2020
1 parent 4f14917 commit 7a11828
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/nix-shell.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7a11828

Please sign in to comment.