From 69c88f5028b4b2d5d2500dc4f631d77ac1d2c5fd Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 26 Nov 2012 17:46:45 +0100 Subject: [PATCH] Fix the multiple-outputs test --- tests/multiple-outputs.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/multiple-outputs.sh b/tests/multiple-outputs.sh index 29af691ea..ac622a7b4 100644 --- a/tests/multiple-outputs.sh +++ b/tests/multiple-outputs.sh @@ -29,6 +29,9 @@ 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 ] +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" ] [ "$(cat $TEST_ROOT/result-second/link/file)" = "first" ] @@ -37,7 +40,7 @@ hash1=$(nix-store -q --hash $TEST_ROOT/result-second) # Delete one of the outputs and rebuild it. This will cause a hash # rewrite. nix-store --delete $TEST_ROOT/result-second --ignore-liveness -nix-build multiple-outputs.nix -A a -o $TEST_ROOT/result +nix-build multiple-outputs.nix -A a.all -o $TEST_ROOT/result [ "$(cat $TEST_ROOT/result-second/file)" = "second" ] [ "$(cat $TEST_ROOT/result-second/link/file)" = "first" ] hash2=$(nix-store -q --hash $TEST_ROOT/result-second)