Skip to content

Commit b9d74f1

Browse files
author
Aaron Roller
committed
should have used a variable AM-415/rostests
1 parent aeab38a commit b9d74f1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

detection.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@ suite_success(){
1414
file="$1"
1515
# look for 0 failures and errors
1616
# 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")
17+
target="<testsuite"
18+
if cat "$file" | grep "$target";then
19+
suite_line=$(cat "$file" | grep "$target")
1920
if echo "$suite_line" | grep "failures=\"0\"";then
2021
if echo "$suite_line" | grep "errors=\"0\"";then
2122
return 0

0 commit comments

Comments
 (0)