diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-08-21T19·50+0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-08-21T19·50+0200 |
commit | 3f80060500bb3a9dff192c11af63da7364673ab0 (patch) | |
tree | 49aa943001a44d1db7f5fdb1e87d15f55f67bfa3 /tests/lang.sh | |
parent | 809ca33806d75eeabb9c668b124762fb6462e5bc (diff) |
Fix tests
So all these years I was totally deluded about the meaning of "set -e". You might think that it causes statements like "false && true" or "! true" to fail, but it doesn't...
Diffstat (limited to 'tests/lang.sh')
-rw-r--r-- | tests/lang.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/lang.sh b/tests/lang.sh index 7157a68c5ceb..c797a2a74ed8 100644 --- a/tests/lang.sh +++ b/tests/lang.sh @@ -3,7 +3,7 @@ source common.sh export TEST_VAR=foo # for eval-okay-getenv.nix nix-instantiate --eval -E 'builtins.trace "Hello" 123' 2>&1 | grep -q Hello -! nix-instantiate --show-trace --eval -E 'builtins.addErrorContext "Hello" 123' 2>&1 | grep -q Hello +(! nix-instantiate --show-trace --eval -E 'builtins.addErrorContext "Hello" 123' 2>&1 | grep -q Hello) nix-instantiate --show-trace --eval -E 'builtins.addErrorContext "Hello" (throw "Foo")' 2>&1 | grep -q Hello set +x |