mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Setting CTEST_OUTPUT_ON_FAILURE will cause ctest to log all output from failing tests (and only from failing tests). This will reduce our ci output in case of failures as our homebrew script 'afterfailure' would output all test logs in case of failure not only the output of failed tests.
14 lines
405 B
Bash
Executable File
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
|