diff --git a/lib/gdbcommand.py b/lib/gdbcommand.py index f6594ab..f22fd73 100644 --- a/lib/gdbcommand.py +++ b/lib/gdbcommand.py @@ -26,7 +26,7 @@ class GdbCatSumfileCommand(ShellCommand): baseline = parser.read_sum_file(builder, rev) result = SUCCESS if baseline is not None: - report = parser.compute_regressions(cur_results, baseline) + report = parser.compute_regressions(cur_results, builder, baseline) if report is not '': self.addCompleteLog('regressions', report) result = FAILURE diff --git a/lib/sumfiles.py b/lib/sumfiles.py index 13dd5d2..916e6e5 100644 --- a/lib/sumfiles.py +++ b/lib/sumfiles.py @@ -93,14 +93,14 @@ class DejaResults(object): self.parse_sum_line(cur_results, line) return cur_results - # Compute regressions between RESULTS and BASELINE. + # Compute regressions between RESULTS and BASELINE on BUILDER. # BASELINE will be modified if any new PASSes are seen. # Returns a regression report, as a string. - def compute_regressions(self, results, baseline): + def compute_regressions(self, builder, results, baseline): our_keys = results.keys() our_keys.sort() result = '' - xfails = self.read_sum_file('', 'xfail') + xfails = self.read_sum_file(builder, 'xfail') if xfails is None: xfails = {} for key in our_keys: