From d9fcff2b1bf6f83198e2450d66199f979aadc49f Mon Sep 17 00:00:00 2001 From: Michal Sojka Date: Wed, 5 Feb 2014 22:22:16 +0100 Subject: [PATCH] Preliminary version of graph generator --- continuous/steps/00-id | 6 ++++++ continuous/www/wvperf2html.py | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) create mode 100755 continuous/steps/00-id diff --git a/continuous/steps/00-id b/continuous/steps/00-id new file mode 100755 index 0000000..fe78275 --- /dev/null +++ b/continuous/steps/00-id @@ -0,0 +1,6 @@ +#!/bin/sh + +set -e + +echo "! Date: $(date +'%F %R:%S') ok" + diff --git a/continuous/www/wvperf2html.py b/continuous/www/wvperf2html.py index b690f63..0fed0ed 100755 --- a/continuous/www/wvperf2html.py +++ b/continuous/www/wvperf2html.py @@ -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) -- 2.39.2