Use gdb.sum to calculate the regressions on try builds

This commit is contained in:
Sergio Durigan Junior 2016-07-29 11:15:32 -04:00
parent 47fd6057e8
commit cc63fe71e7

View file

@ -60,15 +60,10 @@ class GdbCatSumfileCommand(ShellCommand):
parser = DejaResults() parser = DejaResults()
cur_results = parser.read_sum_text(self.getLog('stdio').getText()) cur_results = parser.read_sum_text(self.getLog('stdio').getText())
if not istrysched or istrysched == 'no': baseline = parser.read_baseline (builder, branch)
baseline = parser.read_baseline (builder, branch) old_sum = parser.read_sum_file (builder, branch)
old_sum = parser.read_old_sum_file (builder, branch)
else:
# TODO: We'd probably be able to just call read_sum_file
# for both cases. Investigate.
baseline = parser.read_baseline (builder, branch)
old_sum = parser.read_sum_file (builder, branch)
result = SUCCESS result = SUCCESS
if baseline is not None: if baseline is not None:
report = parser.compute_regressions (builder, branch, report = parser.compute_regressions (builder, branch,
cur_results, baseline) cur_results, baseline)