aboutsummaryrefslogtreecommitdiff
path: root/tests/misc.sh
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2020-07-06 16:40:10 +0200
committerEelco Dolstra <edolstra@gmail.com>2020-07-06 16:40:10 +0200
commit54712aaf8a4d9d6a42232fe9b360fc72f35ed02d (patch)
tree02f1ad7cb8628ed5877ed411a7ed67b3c0917da9 /tests/misc.sh
parent6ff9aa8df7ce8266147f74c65e2cc529a1e72ce0 (diff)
parent14227aeb327798a1446ddde59fc561c3d2e6b7a8 (diff)
Merge remote-tracking branch 'origin/master' into flakes
Diffstat (limited to 'tests/misc.sh')
-rw-r--r--tests/misc.sh11
1 files changed, 8 insertions, 3 deletions
diff --git a/tests/misc.sh b/tests/misc.sh
index fd4908e25..a81c9dbb1 100644
--- a/tests/misc.sh
+++ b/tests/misc.sh
@@ -16,6 +16,11 @@ nix-env --foo 2>&1 | grep "no operation"
nix-env -q --foo 2>&1 | grep "unknown flag"
# Eval Errors.
-eval_res=$(nix-instantiate --eval -E 'let a = {} // a; in a.foo' 2>&1 || true)
-echo $eval_res | grep "(string) (1:15)"
-echo $eval_res | grep "infinite recursion encountered"
+eval_arg_res=$(nix-instantiate --eval -E 'let a = {} // a; in a.foo' 2>&1 || true)
+echo $eval_arg_res | grep "at: (1:15) from string"
+echo $eval_arg_res | grep "infinite recursion encountered"
+
+eval_stdin_res=$(echo 'let a = {} // a; in a.foo' | nix-instantiate --eval -E - 2>&1 || true)
+echo $eval_stdin_res | grep "at: (1:15) from stdin"
+echo $eval_stdin_res | grep "infinite recursion encountered"
+