From 59346a98377b9a080d712f96990cd204574066b1 Mon Sep 17 00:00:00 2001 From: Merlin Mathesius Date: Jul 13 2017 17:35:08 +0000 Subject: Avoid triggering a false failure when "No such file or directory" is in the expected test output. Tests that can't start running should now fall through to the "UNKNOWN" case. --- diff --git a/roles/standard-test-beakerlib/tasks/main.yml b/roles/standard-test-beakerlib/tasks/main.yml index 6547326..e3a53e8 100644 --- a/roles/standard-test-beakerlib/tasks/main.yml +++ b/roles/standard-test-beakerlib/tasks/main.yml @@ -115,7 +115,7 @@ - name: Make the master test summary log artifact shell: | logfile={{ remote_artifacts }}/test.$(echo {{ item }} | sed -e 's/\//-/g').log - if grep -q -E "FAIL|No such file or directory" "$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