Use "set -x" in the tests to see where a test fails

This commit is contained in:
Eelco Dolstra 2012-07-27 14:33:01 -04:00
parent e6ab52cdd1
commit 6ecf4f13f6
2 changed files with 4 additions and 0 deletions

View file

@ -80,3 +80,5 @@ fail() {
echo "$1"
exit 1
}
set -x

View file

@ -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..."