Skip to content

Commit 8fd2e2e

Browse files
Merge pull request #261 from kstrenkova/fix-expectedFailuresList-corner-case
Fix expectedFailuresList incorrect overwrite
2 parents 2382636 + 2ff95a1 commit 8fd2e2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

container-images/tcib/base/os/tempest/run_tempest.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ if [ ${TEMPEST_DEBUG_MODE} == true ]; then
482482
sleep infinity
483483
fi
484484

485-
if [ ! -z ${TEMPEST_EXPECTED_FAILURES_LIST} ]; then
485+
if [ -s ${TEMPEST_LOGS_DIR}stestr_failing.txt ] && [ -s ${TEMPEST_EXPECTED_FAILURES_LIST} ]; then
486486
echo "Failing tests marked as expected failures"
487487
grep -Fxf ${TEMPEST_EXPECTED_FAILURES_LIST} ${TEMPEST_LOGS_DIR}stestr_failing.txt
488488
if ! grep -Fxv -q -f ${TEMPEST_EXPECTED_FAILURES_LIST} ${TEMPEST_LOGS_DIR}stestr_failing.txt ; then

0 commit comments

Comments
 (0)