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)