From 57326f7ef2587e00b4bbbd53716ee2c47b7fbe13 Mon Sep 17 00:00:00 2001 From: Sergio Durigan Junior Date: Sat, 20 Dec 2014 20:47:56 -0500 Subject: [PATCH] Migrating the xfail file to each builder --- lib/gdbcommand.py | 2 +- lib/sumfiles.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) 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: