Files
gnucash/util/ci/afterfailure
Geert Janssens 8dc0e65e56 CI - limit error output to failed tests only
Do so by rerunning these tests in verbose mode
Obviously that's only possible if ctest had already run
which is tested by evaluating the existence of
directory /build/Testing
2019-10-06 18:31:20 +02:00

14 lines
405 B
Bash
Executable File

#!/bin/bash
if [[ -d "/build/Testing" ]] ; then
echo
echo "##################################################"
echo "##### Rerunning failed tests in verbose mode #####"
echo "##################################################"
ctest -V --rerun-failed
else
echo "Not rerunning tests. ctest hasn't run yet."
fi
# This script should fail so that the entire script will fail.
exit 1