Adding trybuild_gdb.sum file on repos

This commit is contained in:
Sergio Durigan Junior 2016-07-29 11:34:20 -04:00
parent cc63fe71e7
commit 03d5216a0f
3 changed files with 8 additions and 0 deletions

View file

@ -85,5 +85,7 @@ class GdbCatSumfileCommand(ShellCommand):
if baseline is None: if baseline is None:
baseline = cur_results baseline = cur_results
parser.write_baseline (baseline, builder, branch, rev) parser.write_baseline (baseline, builder, branch, rev)
else:
parser.write_try_build_sum_file (cur_results, builder, branch)
return result return result

View file

@ -144,6 +144,8 @@ class SaveGDBResults (ShellCommand):
'baseline']) 'baseline'])
if os.path.exists ("%s/previous_gdb.sum" % repodir): if os.path.exists ("%s/previous_gdb.sum" % repodir):
repo.index.add (['previous_gdb.sum']) 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 repo.is_dirty ():
if istrysched and istrysched == 'yes': if istrysched and istrysched == 'yes':
repo.index.commit ('TRY BUILD: Log files for %s -- branch %s' % (full_tag, branch)) repo.index.commit ('TRY BUILD: Log files for %s -- branch %s' % (full_tag, branch))

View file

@ -91,6 +91,10 @@ class DejaResults(object):
def write_sum_file(self, sum_dict, builder, branch): def write_sum_file(self, sum_dict, builder, branch):
self._write_sum_file (sum_dict, builder, None, 'gdb.sum') 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): def write_baseline(self, sum_dict, builder, branch, rev):
self._write_sum_file(sum_dict, builder, None, 'baseline', self._write_sum_file(sum_dict, builder, None, 'baseline',
header = "### THIS BASELINE WAS LAST UPDATED BY COMMIT %s ###\n\n" % rev) header = "### THIS BASELINE WAS LAST UPDATED BY COMMIT %s ###\n\n" % rev)