Skip to content

Commit

Permalink
SERVER-19820: return failure correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
dalyd committed Aug 13, 2015
1 parent 83f5d68 commit c04aaef
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions buildscripts/perf_regression_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,21 +40,21 @@ def main(args):
reference = h.seriesAtRevision(test, args.reference)
if previous["max"] - this_one["max"] >= (args.threshold * previous["max"]):
print "\tregression found: drop from %s (commit %s) to %s" % (previous["max"], previous["revision"][:5], this_one["max"])
Failed = True
failed = True
else :
print "\tno regresion against previous. "
if not daysprevious :
print "\tno regresion against previous. No n day data"
elif daysprevious["max"] - this_one["max"] >= (args.threshold * daysprevious["max"]):
print "\tregression found over days: drop from %s (commit %s) to %s" % (daysprevious["max"], daysprevious["revision"][:5], this_one["max"])
Failed = True
failed = True
else:
print "\tno regression against n day data"
if not reference :
print "\tno No data for reference commit"
elif reference["max"] - this_one["max"] >= (args.threshold * reference["max"]):
print "\tregression found over reference commit: drop from %s (commit %s) to %s" % (reference["max"], reference["revision"][:5], this_one["max"])
Failed = True
failed = True
else:
print "\tno regression against reference commit"

Expand Down

0 comments on commit c04aaef

Please sign in to comment.