Skip to content

Commit 5eadc16

Browse files
committed
Rerun fragile tests only with status == 'fail'
Sometimes fragile tests can be skipped or disabled. Such tests were considered as not passed and test-run rerun them which is obviously redundant. This patch fixes the issue.
1 parent e1a1f97 commit 5eadc16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/worker.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ def run_loop(self, task_queue, result_queue):
352352
)
353353
retries_left = self.suite.fragile_retries()
354354
# let's run till short_status became 'pass'
355-
while short_status != 'pass' and retries_left >= 0:
355+
while short_status in (None, 'fail') and retries_left >= 0:
356356
self.restart_server()
357357
# print message only after some fails occurred
358358
if short_status == 'fail':

0 commit comments

Comments
 (0)