| |
@@ -81,7 +81,7 @@
|
| |
shell: |
|
| |
export OUTPUTFILE=/dev/stdout TEST={{ item }}
|
| |
export PATH="$PATH:{{ tenv_workdir }}"
|
| |
- logfile={{ remote_artifacts }}/test.$(echo {{ item }} | sed -e 's/\//-/g').log
|
| |
+ logfile={{ remote_artifacts }}/$(echo {{ item }} | sed -e 's/\//-/g').log
|
| |
exec 2>>$logfile 1>>$logfile
|
| |
cd {{ tenv_workdir }}
|
| |
if [ -f {{ item }} ]; then
|
| |
@@ -105,18 +105,22 @@
|
| |
always:
|
| |
- name: Make the master tests summary log artifact
|
| |
shell: |
|
| |
- logfile={{ remote_artifacts }}/test.$(echo {{ item }} | sed -e 's/\//-/g').log
|
| |
+ log_file_name=$(echo {{ item }} | sed -e 's/\//-/g').log
|
| |
+ logfile={{ remote_artifacts }}/${log_file_name}
|
| |
+ status="FAIL"
|
| |
if grep -q '\[ *FAIL *\]' "$logfile"; then
|
| |
- echo "FAIL {{ item }}" >> {{ remote_artifacts }}/test.log
|
| |
+ status="FAIL"
|
| |
elif grep -q '\[ *PASS *\]' "$logfile"; then
|
| |
- echo "PASS {{ item }}" >> {{ remote_artifacts }}/test.log
|
| |
+ status="PASS"
|
| |
elif grep -q FAIL "$logfile"; then
|
| |
- echo "FAIL {{ item }}" >> {{ remote_artifacts }}/test.log
|
| |
+ status="FAIL"
|
| |
elif grep -q PASS "$logfile"; then
|
| |
- echo "PASS {{ item }}" >> {{ remote_artifacts }}/test.log
|
| |
+ status="PASS"
|
| |
else
|
| |
- echo "UNKNOWN {{ item }}" >> {{ remote_artifacts }}/test.log
|
| |
+ status="FAIL"
|
| |
fi
|
| |
+ echo "${status} {{ item }}" >> {{ remote_artifacts }}/test.log
|
| |
+ mv ${logfile} {{ remote_artifacts }}/${status}_${log_file_name}
|
| |
with_items:
|
| |
- "{{ tests }}"
|
| |
|
| |
related to https://pagure.io/standard-test-roles/issue/177
note that on beakerlib I've replaced UNKNOWN by FAIL.
If we want to continue to have UNKNOWN I think we should update
shell: grep "^FAIL" {{ remote_artifacts }}/test.log
to also grep for UNKNOWN result.