aboutsummaryrefslogtreecommitdiff
path: root/test/run_test.sh
diff options
context:
space:
mode:
Diffstat (limited to 'test/run_test.sh')
-rwxr-xr-xtest/run_test.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/run_test.sh b/test/run_test.sh
index 5bffa4d06..a5f49bd4a 100755
--- a/test/run_test.sh
+++ b/test/run_test.sh
@@ -38,6 +38,13 @@ fi
if [[ 0 != ${code} ]] ; then
echo ">>> test ${testname} returned ${code}"
+ if [[ -z "${PALUDIS_TESTS_RERUN_VERBOSELY}" ]] ; then
+ out=`pwd`/${testname#./}.epicfail
+ echo ">>> rerunning test ${testname} verbosely redirected to ${out}"
+ env PALUDIS_TESTS_RERUN_VERBOSELY=no PALUDIS_TESTS_KEEP_STDERR=yes \
+ PALUDIS_TESTS_KEEP_LOG=yes $@ 2>&1 > $out
+ echo ">>> saved output of verbose ${testname} rerun to ${out}"
+ fi
echo ">>> exiting with error for test ${testname}"
exit 255
fi