Skip to content

Commit

Permalink
#22706 Fixing cli tests reporting status (error cases).
Browse files Browse the repository at this point in the history
  • Loading branch information
dcolina committed Aug 31, 2023
1 parent b511e0b commit fec6a4b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/cli-cicd-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,9 @@ jobs:
./mvnw clean verify -Dtest.failure.ignore=true
FAILURES=$(find . -name TEST-*.xml | xargs grep '<failure' | wc -l)
ERRORS=$(find . -name TEST-*.xml | xargs grep '<error' | wc -l)
if [ $FAILURES -eq 0 ]; then
if [[ $FAILURES -gt 0 || $ERRORS -gt 0 ]]; then
OUTPUT_STATUS="PASSED"
else
OUTPUT_STATUS="FAILED"
Expand Down

0 comments on commit fec6a4b

Please sign in to comment.