diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2012-07-27T18·33-0400 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2012-07-27T18·33-0400 |
commit | 6ecf4f13f6a71701f77018a852db2bd4bde0bb67 (patch) | |
tree | 38a07029d8970c35cccc79c95a53342c36e46f8d /tests | |
parent | e6ab52cdd1df207c7a007a9cba665ee8a031d94a (diff) |
Use "set -x" in the tests to see where a test fails
Diffstat (limited to 'tests')
-rw-r--r-- | tests/common.sh.in | 2 | ||||
-rw-r--r-- | tests/referrers.sh | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/tests/common.sh.in b/tests/common.sh.in index abefb7e25094..1d473ca0585e 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 d4604aec930b..e57b2d8e31ff 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..." |