[Piglit] [PATCH 2/2] json.py: fix key name typo in result loading

Thomas Wood thomas.wood at intel.com
Thu Apr 23 08:03:03 PDT 2015


If the results file is converted to a newer results version, the invalid
key name would be added to the updated file.

Signed-off-by: Thomas Wood <thomas.wood at intel.com>
---
 framework/backends/json.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/framework/backends/json.py b/framework/backends/json.py
index d68dd7d..0a4758b 100644
--- a/framework/backends/json.py
+++ b/framework/backends/json.py
@@ -207,7 +207,7 @@ def _load(results_file):
     
     """
     result = results.TestrunResult()
-    result.results_vesrion = 0  # This should get overwritten
+    result.results_version = 0  # This should get overwritten
     result.__dict__.update(json.load(results_file))
 
     for key, value in result.tests.viewitems():
-- 
2.1.0



More information about the Piglit mailing list