try_count is str

This commit is contained in:
Sergio Durigan Junior 2017-10-18 11:23:20 -04:00
parent 2ceaf4a971
commit 8c292767e3
2 changed files with 4 additions and 4 deletions

View file

@ -89,7 +89,7 @@ class GdbCatSumfileCommand(steps.ShellCommand):
# This takes care of our very first build. # This takes care of our very first build.
if istry: if istry:
parser.write_try_build_sum_file (cur_results, builder, branch, parser.write_try_build_sum_file (cur_results, builder, branch,
rev, 0) rev, "0")
else: else:
parser.write_sum_file (cur_results, builder, branch, rev, istry) parser.write_sum_file (cur_results, builder, branch, rev, istry)
# If there was no previous baseline, then this run # If there was no previous baseline, then this run
@ -111,7 +111,7 @@ class GdbCatSumfileCommand(steps.ShellCommand):
# This takes care of our very first build. # This takes care of our very first build.
if istry: if istry:
parser.write_try_build_sum_file (cur_results, builder, branch, parser.write_try_build_sum_file (cur_results, builder, branch,
rev, 0) rev, "0")
else: else:
parser.write_sum_file (cur_results, builder, branch, rev, istry) parser.write_sum_file (cur_results, builder, branch, rev, istry)
# If there was no previous baseline, then this run # If there was no previous baseline, then this run

View file

@ -98,7 +98,7 @@ class DejaResults(object):
def write_sum_file(self, sum_dict, builder, branch, rev, istry, try_count = "0"): def write_sum_file(self, sum_dict, builder, branch, rev, istry, try_count = "0"):
if istry: if istry:
self.write_try_build_sum_file (self, sum_dict, builder, branch, rev, self.write_try_build_sum_file (self, sum_dict, builder, branch, rev,
try_count = try_count) try_count = str (try_count))
else: else:
self._write_sum_file (sum_dict, builder, rev, 'gdb.sum', istry = False, self._write_sum_file (sum_dict, builder, rev, 'gdb.sum', istry = False,
branch = branch) branch = branch)
@ -108,7 +108,7 @@ class DejaResults(object):
header = "### THIS SUM FILE WAS GENERATED BY A TRY BUILD ###\n\n", header = "### THIS SUM FILE WAS GENERATED BY A TRY BUILD ###\n\n",
istry = True, istry = True,
branch = branch, branch = branch,
try_count = try_count) try_count = str (try_count))
def write_baseline(self, sum_dict, builder, branch, rev, istry): def write_baseline(self, sum_dict, builder, branch, rev, istry):
if istry: if istry: