about summary refs log tree commit diff
path: root/tests/multiple-outputs.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/multiple-outputs.sh')
-rw-r--r--tests/multiple-outputs.sh12
1 files changed, 2 insertions, 10 deletions
diff --git a/tests/multiple-outputs.sh b/tests/multiple-outputs.sh
index d3ebdbea3498..dadd2e25f6b6 100644
--- a/tests/multiple-outputs.sh
+++ b/tests/multiple-outputs.sh
@@ -2,14 +2,6 @@ source common.sh
 
 echo "Testing multiple outputs..."
 
-drvPath=$(nix-instantiate multiple-outputs.nix)
-
-echo "derivation is $drvPath"
-
-outPath=$(nix-store -rvv "$drvPath")
-
+outPath=$(nix-build multiple-outputs.nix -A b)
 echo "output path is $outPath"
-
-text=$(cat "$outPath"/file)
-if test "$text" != "success"; then exit 1; fi
-
+[ "$(cat "$outPath"/file)" = "success" ]