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 aeab38a commit b9d74f1Copy full SHA for b9d74f1
detection.sh
@@ -14,8 +14,9 @@ suite_success(){
14
file="$1"
15
# look for 0 failures and errors
16
# grep reports non zero code if anything but zero failures/errors
17
- if cat "$file" | grep "<testsuite";then
18
- suite_line=$(cat "$file" | grep "<testsuites")
+ target="<testsuite"
+ if cat "$file" | grep "$target";then
19
+ suite_line=$(cat "$file" | grep "$target")
20
if echo "$suite_line" | grep "failures=\"0\"";then
21
if echo "$suite_line" | grep "errors=\"0\"";then
22
return 0
0 commit comments