Preliminary version of graph generator
authorMichal Sojka <sojkam1@fel.cvut.cz>
Wed, 5 Feb 2014 21:22:16 +0000 (22:22 +0100)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Wed, 5 Feb 2014 21:22:16 +0000 (22:22 +0100)
continuous/steps/00-id [new file with mode: 0755]
continuous/www/wvperf2html.py

diff --git a/continuous/steps/00-id b/continuous/steps/00-id
new file mode 100755 (executable)
index 0000000..fe78275
--- /dev/null
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+set -e
+
+echo "! Date: $(date +'%F %R:%S') ok"
+
index b690f63..0fed0ed 100755 (executable)
@@ -22,7 +22,7 @@ import json
 
 
 re_prefix = "\([0-9]+\) (?:#   )?"
-re_date = re.compile('^Date: (.*)')
+re_date = re.compile('^! Date: (.*) ok')
 re_testing = re.compile('^('+re_prefix+')?\s*Testing "(.*)" in (.*):\s*$')
 re_commit = re.compile('.*(\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}).*, commit: (.*)')
 re_commithash = re.compile('([0-9a-f]{7})(-dirty)? \(')
@@ -207,7 +207,7 @@ for line in sys.stdin:
 
     match = re_date.match(line)
     if (match):
-        date = time.strptime(match.group(1), "%a, %d %b %Y %H:%M:%S +0200")
+        date = time.strptime(match.group(1), "%Y-%m-%d %H:%M:%S")
         continue
 
     match = re_testing.match(line)