about summary refs log tree commit diff
path: root/tests/nix-build.sh
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2006-03-01T14·26+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2006-03-01T14·26+0000
commitb90787290df216f511ec296c85390e645ca1e89f (patch)
treec269893e2d19f6bac41bce4fbd77b3c5f1b09812 /tests/nix-build.sh
parent089c41a0c2ecf91c55495547a5462d75f36be5f4 (diff)
* TDD! Woohoo!
Diffstat (limited to 'tests/nix-build.sh')
-rw-r--r--tests/nix-build.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/nix-build.sh b/tests/nix-build.sh
index 23f8ce99875f..22980956be69 100644
--- a/tests/nix-build.sh
+++ b/tests/nix-build.sh
@@ -6,7 +6,9 @@ $nixstore --gc
 test "$(cat $TEST_ROOT/result/foobar)" = FOOBAR
 
 # The result should be retained by a GC.
-target=$(ls -l $TEST_ROOT/result | sed 's/.*->\ //')
+echo A
+target=$(readLink $TEST_ROOT/result)
+echo B
 echo target is $target
 $nixstore --gc
 test -e $target/foobar