Skip to content
Snippets Groups Projects
Commit 60ae00eb authored by Ralf Jung's avatar Ralf Jung
Browse files

tweak benchmark exporter

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