We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f1f065c commit e949a8eCopy full SHA for e949a8e
maven/simple-project/.ci/build.sh
@@ -7,6 +7,10 @@ set -e
7
8
echo
9
echo "Verifying build.log..."
10
-grep "You have 2 PMD violations" build.log || (echo -e "\n\n\x1b[31mMissing expected rule violation\e[0m"; exit 1)
+failure_count=$(grep --count "PMD Failure" build.log)
11
+if [[ $failure_count -ne 2 ]]; then
12
+ echo -e "\n\n\x1b[31mMissing expected rule violations\e[0m"
13
+ exit 1
14
+fi
15
16
echo -e "\n\n\x1b[32mTest successful\e[0m"
0 commit comments