From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 25 Jul 2023 12:27:30 +0000 (-0400) Subject: Highlight why regression tests failed with github annotation X-Git-Tag: rec-5.0.0-alpha1~88^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F13074%2Fhead;p=thirdparty%2Fpdns.git Highlight why regression tests failed with github annotation --- diff --git a/regression-tests/runtests b/regression-tests/runtests index 9566e8bc49..6ebf474edb 100755 --- a/regression-tests/runtests +++ b/regression-tests/runtests @@ -146,6 +146,9 @@ do echo >> test-results done +if [ $failed -gt 0 ]; then + echo -n "::error ::title=Regression-tests::Tests failed. " +fi echo -n $passed out of $[$passed+$failed] echo -n " (" res=$((echo scale=2; echo 100*$passed/\($passed+$failed\)) | bc )