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 35529d4 commit 2e1deccCopy full SHA for 2e1decc
detection.sh
@@ -15,7 +15,14 @@ find_fail(){
15
file=$2
16
suite_line=$(cat "$file" | grep "$target")
17
if echo "$suite_line" | grep "failures=\"0\"";then
18
- if echo "$suite_line" | grep "errors=\"0\"";then
+ if echo "$suite_line" | grep -L "errors=\"0\"";then
19
+ return 0
20
+ else
21
+ echo "Error found in $file: $suite_line"
22
+ return 1
23
+ fi
24
+ elif echo "$suite_line" | grep -L "errors=\"0\"";then
25
+ if echo "$suite_line" | grep "failures=\"0\"";then
26
return 0
27
else
28
echo "Error found in $file: $suite_line"
0 commit comments