tests: Get more debug info from failed tests

Change-Id: I8e8dd0e4fc6955ce4b1ac9f276362b61ca71f1c5
Signed-off-by: Raghavendra Talur <rtalur@redhat.com>
Reviewed-on: http://review.gluster.org/11801
Tested-by: NetBSD Build System <jenkins@build.gluster.org>
Reviewed-by: Pranith Kumar Karampuri <pkarampu@redhat.com>
Tested-by: Gluster Build System <jenkins@build.gluster.com>
This commit is contained in:
Raghavendra Talur 2015-07-30 11:57:45 +05:30
parent b467b97e4c
commit 9e3d87639c

View File

@ -211,7 +211,7 @@ function run_all ()
| while read t; do
old_cores=$(ls /core.* 2> /dev/null | wc -l)
retval=0
prove -f --timer $t
prove -mf --timer $t
TMP_RES=$?
if [ ${TMP_RES} -ne 0 ] ; then
echo "$t: bad status $TMP_RES"
@ -227,6 +227,12 @@ function run_all ()
if is_bad_test $t; then
echo "Ignoring failure from known-bad test $t"
else
echo
echo "Running failed test $t in debug mode"
echo "Just for debug data, does not change test result"
echo
bash -x $t
echo
return $retval
fi
fi