Skip to content

Commit

Permalink
Fix up pass statistics.
Browse files Browse the repository at this point in the history
  • Loading branch information
marxin committed Apr 23, 2020
1 parent 0f79518 commit 6b5820e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cvise/utils/testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,7 @@ def process_done_futures(self):
quit_loop = True
new_futures.add(future)
else:
self.pass_statistic.update(self.current_pass, success=False)
if test_env.result == PassResult.OK:
assert test_env.exitcode
if (self.also_interesting is not None and
Expand All @@ -347,10 +348,9 @@ def process_done_futures(self):
if not self.silent_pass_bug:
self.report_pass_bug(test_env, "pass error")
quit_loop = True
else:
if not self.no_give_up and test_env.order > self.GIVEUP_CONSTANT:
self.report_pass_bug(test_env, "pass got stuck")
quit_loop = True
if not self.no_give_up and test_env.order > self.GIVEUP_CONSTANT:
self.report_pass_bug(test_env, "pass got stuck")
quit_loop = True
else:
new_futures.add(future)

Expand Down

0 comments on commit 6b5820e

Please sign in to comment.