aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMichal Sojka <sojkam1@fel.cvut.cz>2015-09-28 09:38:11 +0200
committerMichal Sojka <sojkam1@fel.cvut.cz>2015-09-28 09:38:11 +0200
commit8c65cf30f0ebe1db262dce38bc314d111bc1dd8a (patch)
tree01da7218143bed1446d44c949ab8dd1731833f37 /tests
parent0a28394c83a0fcd858baba3260455c3507a51f35 (diff)
downloadlinux-conf-perf-8c65cf30f0ebe1db262dce38bc314d111bc1dd8a.tar.gz
linux-conf-perf-8c65cf30f0ebe1db262dce38bc314d111bc1dd8a.tar.bz2
linux-conf-perf-8c65cf30f0ebe1db262dce38bc314d111bc1dd8a.zip
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.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/cyclictest/parse11
1 files 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<min>\d+) Act: *(?P<act>\d+) Avg: *(?P<avg>\d+) Max: *(?P<max>\d+) ok")
+
+for line in fileinput.input():
+ match = result_re.match(line)
+ if match:
+ print(match.group('max'))