[Ezbench-dev] [PATCH 07/25] report/journal: parse the "test(ed)" ops differently

Petri Latvala petri.latvala at intel.com
Fri Feb 24 11:19:08 UTC 2017


From: Martin Peres <martin.peres at free.fr>

---
 python-modules/ezbench/report.py | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/python-modules/ezbench/report.py b/python-modules/ezbench/report.py
index 20ae903..934d4c3 100644
--- a/python-modules/ezbench/report.py
+++ b/python-modules/ezbench/report.py
@@ -1336,7 +1336,13 @@ class Journal:
                         continue
 
                     op = fields[1]
-                    key=",".join(fields[2:])
+                    if op == "test" or op == "tested":
+                        key=",".join(fields[2:4])
+
+                        attrs["version"] = fields[2]
+                        attrs["test"] = fields[3]
+                    else:
+                        key=",".join(fields[2:])
 
                     self.__add_value__(op, key, attrs)
         except Exception:
-- 
2.9.3



More information about the Ezbench-dev mailing list