diff --git a/.github/scripts/compliance_parser.sh b/.github/scripts/compliance_parser.sh index 154bde9f1..c6af83153 100755 --- a/.github/scripts/compliance_parser.sh +++ b/.github/scripts/compliance_parser.sh @@ -1,5 +1,12 @@ #!/bin/bash +# Check for xml output file +if [ -f "$1" ]; then + echo "$1 exists." +else + echo "$1 does not exist." + exit 1 +fi # Parse the XML data errors=$(xmllint --xpath 'string(//testsuite/@errors)' "$1") failures=$(xmllint --xpath 'string(//testsuite/@failures)' "$1")