Skip to content

Commit

Permalink
feat(ci): check if output file exists (#727)
Browse files Browse the repository at this point in the history
  • Loading branch information
0xfourzerofour committed Jun 14, 2024
1 parent 6c96ed6 commit 98f8e2c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/scripts/compliance_parser.sh
Original file line number Diff line number Diff line change
@@ -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")
Expand Down

0 comments on commit 98f8e2c

Please sign in to comment.