From: Eric Covener Date: Sun, 19 Mar 2023 21:05:11 +0000 (+0000) Subject: re-run failing tests with -v X-Git-Tag: 2.4.57-rc1-candidate~39 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2f4bb4b8af3c9d2e2c9349b3dbd21aca75dee238;p=thirdparty%2Fapache%2Fhttpd.git re-run failing tests with -v git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1908532 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/test/travis_run_linux.sh b/test/travis_run_linux.sh index 58370700437..f7a72d29f82 100755 --- a/test/travis_run_linux.sh +++ b/test/travis_run_linux.sh @@ -122,8 +122,23 @@ if ! test -v SKIP_TESTING; then test -v TEST_INSTALL || make install pushd test/perl-framework perl Makefile.PL -apxs $PREFIX/bin/apxs - make test APACHE_TEST_EXTRA_ARGS="${TEST_ARGS} ${TESTS}" - RV=$? + make test APACHE_TEST_EXTRA_ARGS="${TEST_ARGS} ${TESTS}" | tee test.log + RV=${PIPESTATUS[0]} + # re-run failing tests with -v, avoiding set -e + if [ $RV -ne 0 ]; then + #mv t/logs/error_log t/logs/error_log_save + FAILERS="" + while read FAILER; do + FAILERS="$FAILERS $FAILER" + done < <(awk '/Failed:/{print $1}' test.log) + if [ -n "$FAILERS" ]; then + t/TEST -v $FAILERS || true + fi + # set -e would have killed us after the original t/TEST + rm -f test.log + #mv t/logs/error_log_save t/logs/error_log + false + fi popd fi