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

Martin Peres martin.peres at linux.intel.com
Mon Jan 30 20:54:06 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.11.0



More information about the Ezbench-dev mailing list