Commit e9f4757c authored by David Johnson's avatar David Johnson

Allow a file to be touched for immediate skip of a failed test.

parent 4d0be5ac
Pipeline #1901 passed with stage
in 2 seconds
......@@ -68,6 +68,10 @@ if [ $SKIPSUCCESSFUL -eq 1 -a -f $TESTDIR/SUCCESS ]; then
echo "*** Not retesting Hadoop: $TESTNAME already Done successfully (results in $TESTDIR)!"
exit 0
fi
if [ -f $TESTDIR/SKIP ]; then
echo "*** WARNING: immediate skip triggered before tests!"
exit 0
fi
#
# Create some parallel SSH command lines...
......@@ -251,6 +255,10 @@ while [ 1 -eq 1 ]; do
echo "*** ERROR: timeout, WFAs making no progress; aborting!"
break
fi
if [ -f $TESTDIR/SKIP ]; then
echo "*** ERROR: immediate skip triggered during test!"
break
fi
done
echo "*** Test has completed, fetching logs ..."
......@@ -299,6 +307,9 @@ NOPROGMSG=""
if [ $WFATIMEOUT -gt 0 -a $WAITED -ge $WFATIMEOUT ]; then
NOPROGMSG="No Progress"
fi
if [ -f $TESTDIR/SKIP ]; then
NOPROGMSG="SKIPPED $NOPROGMSG"
fi
if [ $UERR -ne 0 -a $UDONE -eq 0 -a $SERR -ne 0 ]; then
touch $TESTDIR/SUCCESS
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment