| |
@@ -121,7 +121,11 @@
|
| |
- name: Make the master test summary log artifact
|
| |
shell: |
|
| |
logfile={{ remote_artifacts }}/test.$(echo {{ item }} | sed -e 's/\//-/g').log
|
| |
- if grep -q FAIL "$logfile"; then
|
| |
+ if grep -q '\[ *FAIL *\]' "$logfile"; then
|
| |
+ echo "FAIL {{ item }}" >> {{ remote_artifacts }}/test.log
|
| |
+ elif grep -q '\[ *PASS *\]' "$logfile"; then
|
| |
+ echo "PASS {{ item }}" >> {{ remote_artifacts }}/test.log
|
| |
+ elif grep -q FAIL "$logfile"; then
|
| |
echo "FAIL {{ item }}" >> {{ remote_artifacts }}/test.log
|
| |
elif grep -q PASS "$logfile"; then
|
| |
echo "PASS {{ item }}" >> {{ remote_artifacts }}/test.log
|
| |
The parsing of PASS or FAIL status from a beakerlib test
output needs to be more rigorous, or tests with lines like
FAILED in their output will be triggered.