summaryrefslogtreecommitdiff
path: root/obbench
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2015-10-17 12:40:26 +0300
committerLars Wirzenius <liw@liw.fi>2015-10-17 12:40:26 +0300
commitc60d6bc6106449c384690259b95082789e4baf94 (patch)
treefe012c930381335072b9c065d71dd55eb493ada9 /obbench
parent1ce2e050dc36661ae791250d201070f89d6377d4 (diff)
downloadobnam-benchmarks-c60d6bc6106449c384690259b95082789e4baf94.tar.gz
Fix link for profile files
Diffstat (limited to 'obbench')
-rwxr-xr-xobbench6
1 files changed, 3 insertions, 3 deletions
diff --git a/obbench b/obbench
index c80b294..be11190 100755
--- a/obbench
+++ b/obbench
@@ -307,10 +307,10 @@ class ObnamBenchmarker(cliapp.Application):
name=obj['name'],
index=index)
- step['profile_filename'] = os.path.join(
- spec['html_dir'], basename)
- with open(step['profile_filename'], 'w') as profile:
+ filename = os.path.join(spec['html_dir'], basename)
+ with open(filename, 'w') as profile:
profile.write(step['profile'])
+ step['profile_filename'] = basename
reference = 'unknown'
if benchmark is not None: