Skip to content

Commit

Permalink
Merge pull request #172 from mbrubeck/repeat-until
Browse files Browse the repository at this point in the history
Don't pause by default when --repeat-until-unexpected is passed
  • Loading branch information
jgraham committed Mar 5, 2016
2 parents 5ed3ab2 + 05747ea commit f044e60
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions wptrunner/wptrunner.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,8 @@ def list_disabled(test_paths, product, **kwargs):
def get_pause_after_test(test_loader, **kwargs):
total_tests = sum(len(item) for item in test_loader.tests.itervalues())
if kwargs["pause_after_test"] is None:
if kwargs["repeat_until_unexpected"]:
return False
if kwargs["repeat"] == 1 and total_tests == 1:
return True
return False
Expand Down

0 comments on commit f044e60

Please sign in to comment.