Skip to content

Commit

Permalink
add a nice statement if tests don't fail due to some reason
Browse files Browse the repository at this point in the history
  • Loading branch information
spennihana committed Jun 28, 2014
1 parent fb1b566 commit 27c4201
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions h2o-perf/bench/py/h2oPerf/Alerting.py
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,9 @@ def _do_alert(self):
for key in self.correct_alert.alert_list:
f.write("Test " + key + " failed: " + self.correct_alert.alert_list[key])
f.write('\n')
else:
f.write("All tests were correct.")
f.write("\n")

# Check & Report Timing Alerts
f.write(TIMING_ALERT_HEADER)
Expand All @@ -383,6 +386,9 @@ def _do_alert(self):
for key in self.speed_alert.alert_list:
f.write("Test " + key + " failed: " + self.speed_alert.alert_list[key])
f.write('\n')
else:
f.write("No tests failed due to untimeliness.")
f.write("\n")

# Check & Report Infrastructure Alerts
f.write(INFRASTRUCTURE_ALERT_HEADER)
Expand All @@ -391,3 +397,7 @@ def _do_alert(self):
for key in self.infrastructure_alert.alert_list:
f.write("Test " + key + " failed: " + self.infrastructure_alert.alert_list[key])
f.write('\n')
else:
f.write("All tests ran.")
f.write("\n")

0 comments on commit 27c4201

Please sign in to comment.