From 8c65cf30f0ebe1db262dce38bc314d111bc1dd8a Mon Sep 17 00:00:00 2001 From: Michal Sojka Date: Mon, 28 Sep 2015 09:38:11 +0200 Subject: Update parse script for cyclictest Previously, some successfully executed measurements had no value in the database. Let's use explicit parsing script, which may (or may not) solve this problem. --- tests/cyclictest/parse | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/tests/cyclictest/parse b/tests/cyclictest/parse index e83090a..75f29b8 100755 --- a/tests/cyclictest/parse +++ b/tests/cyclictest/parse @@ -1,3 +1,10 @@ -#!/bin/bash +#!/usr/bin/env python3 +import re +import fileinput -cat | grep -e "^! .* ok$" | sed -n '2p' | awk '{print $17}' +result_re = re.compile("! T: 0 \(.*\) P:.* I:.* C:.* Min: *(?P\d+) Act: *(?P\d+) Avg: *(?P\d+) Max: *(?P\d+) ok") + +for line in fileinput.input(): + match = result_re.match(line) + if match: + print(match.group('max')) -- cgit v1.2.3