From 3f80060500bb3a9dff192c11af63da7364673ab0 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 21 Aug 2014 21:50:19 +0200 Subject: 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... --- tests/multiple-outputs.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/multiple-outputs.sh') diff --git a/tests/multiple-outputs.sh b/tests/multiple-outputs.sh index ac622a7b4eaf..7ac77908151c 100644 --- a/tests/multiple-outputs.sh +++ b/tests/multiple-outputs.sh @@ -18,7 +18,7 @@ grep -q 'multiple-outputs-b.drv",\["out"\]' $drvPath outPath=$(nix-build multiple-outputs.nix -A d --no-out-link) drvPath=$(cat $outPath/drv) outPath=$(nix-store -q $drvPath) -! [ -e "$outPath" ] +(! [ -e "$outPath" ]) # Do a build of something that depends on a derivation with multiple # outputs. @@ -30,7 +30,7 @@ echo "output path is $outPath" # Test nix-build on a derivation with multiple outputs. nix-build multiple-outputs.nix -A a -o $TEST_ROOT/result [ -e $TEST_ROOT/result-first ] -! [ -e $TEST_ROOT/result-second ] +(! [ -e $TEST_ROOT/result-second ]) nix-build multiple-outputs.nix -A a.all -o $TEST_ROOT/result [ "$(cat $TEST_ROOT/result-first/file)" = "first" ] [ "$(cat $TEST_ROOT/result-second/file)" = "second" ] -- cgit 1.4.1