]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Highlight why regression tests failed with github annotation 13074/head
authorJosh Soref <2119212+jsoref@users.noreply.github.com>
Tue, 25 Jul 2023 12:27:30 +0000 (08:27 -0400)
committerGitHub <noreply@github.com>
Tue, 25 Jul 2023 12:27:30 +0000 (08:27 -0400)
regression-tests/runtests

index 9566e8bc49be9e9f836227d332fc6054266be216..6ebf474edbb6cddc77ad73788e9bb18d4bc96f54 100755 (executable)
@@ -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 )