From 6ecf4f13f6a71701f77018a852db2bd4bde0bb67 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 27 Jul 2012 14:33:01 -0400 Subject: [PATCH] Use "set -x" in the tests to see where a test fails --- tests/common.sh.in | 2 ++ tests/referrers.sh | 2 ++ 2 files changed, 4 insertions(+) diff --git a/tests/common.sh.in b/tests/common.sh.in index abefb7e25..1d473ca05 100644 --- a/tests/common.sh.in +++ b/tests/common.sh.in @@ -80,3 +80,5 @@ fail() { echo "$1" exit 1 } + +set -x diff --git a/tests/referrers.sh b/tests/referrers.sh index d4604aec9..e57b2d8e3 100644 --- a/tests/referrers.sh +++ b/tests/referrers.sh @@ -10,6 +10,7 @@ touch $reference echo "making registration..." +set +x for ((n = 0; n < $max; n++)); do storePath=$NIX_STORE_DIR/$n echo -n > $storePath @@ -19,6 +20,7 @@ for ((n = 0; n < $max; n++)); do fi echo $storePath; echo; echo 2; echo $reference; echo $ref2 done > $TEST_ROOT/reg_info +set -x echo "registering..."