summaryrefslogtreecommitdiff
path: root/obbench
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2015-07-16 15:32:19 +0300
committerLars Wirzenius <liw@liw.fi>2015-07-16 15:32:19 +0300
commit47a11df1b006d900d6b168a64640d459784d42cb (patch)
tree364d6dd3473fcf59779abfee7b410fee96a44903 /obbench
parentc3b04868104fe6972fc1dd5bfea1d8e473eb96c9 (diff)
downloadobnam-benchmarks-47a11df1b006d900d6b168a64640d459784d42cb.tar.gz
Report date correctly
Diffstat (limited to 'obbench')
-rwxr-xr-xobbench7
1 files changed, 5 insertions, 2 deletions
diff --git a/obbench b/obbench
index 7c15e05..49bac06 100755
--- a/obbench
+++ b/obbench
@@ -305,10 +305,13 @@ class BenchmarkResult(object):
output = cliapp.runcmd(['git', 'rev-parse', 'HEAD'], cwd=checkout)
self._dict['commit_id'] = output.strip()[:7]
- output = cliapp.runcmd(['git', 'show', 'HEAD'], cwd=checkout)
+ self._dict['date'] = 'unknown'
+ output = cliapp.runcmd(
+ ['git', 'show', '--date=iso', 'HEAD'],
+ cwd=checkout)
for line in output.splitlines():
if line.startswith('Date:'):
- self._dict['date'] = line[len('Date:')].strip()
+ self._dict['date'] = line[len('Date:'):].strip()
break
def add_step(self, step_info):