about summary refs log tree commit diff
path: root/tests/logging.sh
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2014-08-21T19·50+0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2014-08-21T19·50+0200
commit3f80060500bb3a9dff192c11af63da7364673ab0 (patch)
tree49aa943001a44d1db7f5fdb1e87d15f55f67bfa3 /tests/logging.sh
parent809ca33806d75eeabb9c668b124762fb6462e5bc (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/logging.sh')
-rw-r--r--tests/logging.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/logging.sh b/tests/logging.sh
index 0113ed11c401..77b2337a9d00 100644
--- a/tests/logging.sh
+++ b/tests/logging.sh
@@ -3,7 +3,6 @@ source common.sh
 clearStore
 
 # Produce an escaped log file.
-set -x
 path=$(nix-build --log-type escapes -vv dependencies.nix --no-out-link 2> $TEST_ROOT/log.esc)
 
 # Convert it to an XML representation.
@@ -20,6 +19,6 @@ fi
 # Test compressed logs.
 clearStore
 rm -rf $NIX_LOG_DIR
-! nix-store -l $path
+(! nix-store -l $path)
 nix-build dependencies.nix --no-out-link --option build-compress-log true
 [ "$(nix-store -l $path)" = FOO ]