about summary refs log tree commit diff
path: root/tests/multiple-outputs.nix
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2012-09-11T23·14-0400
committerEelco Dolstra <eelco.dolstra@logicblox.com>2012-09-11T23·14-0400
commitd4c3b6327ff88273462cec57b0e2805d333c386e (patch)
tree2bf147475b21a67109a4aea0f1a95f76dd5712ea /tests/multiple-outputs.nix
parent1f7901ec3b66fa80203bbac2cd6852eda389ba18 (diff)
Don't put results symlinks in the tests directory
Diffstat (limited to 'tests/multiple-outputs.nix')
-rw-r--r--tests/multiple-outputs.nix9
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/multiple-outputs.nix b/tests/multiple-outputs.nix
index 6add7dd6f997..4a9010d1868e 100644
--- a/tests/multiple-outputs.nix
+++ b/tests/multiple-outputs.nix
@@ -9,8 +9,9 @@ rec {
       ''
         mkdir $first $second
         test -z $all
-        echo "second" > $first/file
-        echo "first" > $second/file
+        echo "first" > $first/file
+        echo "second" > $second/file
+        ln -s $first $second/link
       '';
     helloString = "Hello, world!";
   };
@@ -26,8 +27,8 @@ rec {
         mkdir $out
         test "$firstOutput $secondOutput" = "$allOutputs"
         test "$defaultOutput" = "$firstOutput"
-        test "$(cat $firstOutput/file)" = "second"
-        test "$(cat $secondOutput/file)" = "first"
+        test "$(cat $firstOutput/file)" = "first"
+        test "$(cat $secondOutput/file)" = "second"
         echo "success" > $out/file
       '';
   };