From 03d5216a0f95c5783564e4c02d69147aadf77291 Mon Sep 17 00:00:00 2001 From: Sergio Durigan Junior Date: Fri, 29 Jul 2016 11:34:20 -0400 Subject: [PATCH] Adding trybuild_gdb.sum file on repos --- lib/gdbcommand.py | 2 ++ lib/gdbgitdb.py | 2 ++ lib/sumfiles.py | 4 ++++ 3 files changed, 8 insertions(+) diff --git a/lib/gdbcommand.py b/lib/gdbcommand.py index e574205..b6d8fa5 100644 --- a/lib/gdbcommand.py +++ b/lib/gdbcommand.py @@ -85,5 +85,7 @@ class GdbCatSumfileCommand(ShellCommand): if baseline is None: baseline = cur_results parser.write_baseline (baseline, builder, branch, rev) + else: + parser.write_try_build_sum_file (cur_results, builder, branch) return result diff --git a/lib/gdbgitdb.py b/lib/gdbgitdb.py index 9c8a0e1..07e3a6c 100644 --- a/lib/gdbgitdb.py +++ b/lib/gdbgitdb.py @@ -144,6 +144,8 @@ class SaveGDBResults (ShellCommand): 'baseline']) if os.path.exists ("%s/previous_gdb.sum" % repodir): repo.index.add (['previous_gdb.sum']) + if os.path.exists ("%s/trybuild_gdb.sum" % repodir): + repo.index.add (['trybuild_gdb.sum']) if repo.is_dirty (): if istrysched and istrysched == 'yes': repo.index.commit ('TRY BUILD: Log files for %s -- branch %s' % (full_tag, branch)) diff --git a/lib/sumfiles.py b/lib/sumfiles.py index 1039103..88b331f 100644 --- a/lib/sumfiles.py +++ b/lib/sumfiles.py @@ -91,6 +91,10 @@ class DejaResults(object): def write_sum_file(self, sum_dict, builder, branch): self._write_sum_file (sum_dict, builder, None, 'gdb.sum') + def write_try_build_sum_file (self, sum_dict, builder, branch): + self._write_sum_file (sum_dict, builder, None, 'trybuild_gdb.sum' + header = "### THIS SUM FILE WAS GENERATED BY A TRY BUILD ###\n\n") + def write_baseline(self, sum_dict, builder, branch, rev): self._write_sum_file(sum_dict, builder, None, 'baseline', header = "### THIS BASELINE WAS LAST UPDATED BY COMMIT %s ###\n\n" % rev)