summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaghavendra Talur <rtalur@redhat.com>2015-07-30 11:57:45 +0530
committerRaghavendra Talur <rtalur@redhat.com>2015-08-04 05:35:16 -0700
commit9e3d87639c38b20304ba2809f3f27440ad712fad (patch)
tree20d31b2a87328c77d54a34de29789b414f989c02
parentb467b97e4c4546b7f870a3ac624d56c62bfa5cf9 (diff)
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>
-rwxr-xr-xrun-tests.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/run-tests.sh b/run-tests.sh
index 980290d9322..b3dbbf5d179 100755
--- a/run-tests.sh
+++ b/run-tests.sh
@@ -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