about summary refs log tree commit diff
path: root/tests/nix-build.sh
diff options
context:
space:
mode:
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