Commit 60ae00eb authored by Ralf Jung's avatar Ralf Jung
Browse files

tweak benchmark exporter

parent b71ae795
......@@ -46,6 +46,5 @@ for datapoint in results:
date = subprocess.check_output(['git', 'show', commit, '-s', '--pretty=%cI']).strip().decode('UTF-8')
headers = {'X-Project': args.project, 'X-Branch': args.branch, 'X-Commit': commit, 'X-Config': args.config, 'X-Date': date}
r ="/build_times_8.6", data=times, headers=headers, auth=(args.user, args.password))
print(" {}".format(r.text.strip()))
print(" done")
......@@ -17,6 +17,7 @@ def parse(file, parse_times = PARSE_FULL):
commit = None
times = None
for line in file:
line = line.strip()
# next commit?
m = commit_re.match(line)
if m is not None:
......@@ -40,6 +41,7 @@ def parse(file, parse_times = PARSE_FULL):
times[name] = time
# nothing else we know about, ignore
print("Ignoring line",line)
# end of file. previous commit, if any, is done now.
if commit is not None:
yield Result(commit, times)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment