[Piglit] [PATCH 03/32] framework/backends/json.py: call set_meta() on resume

Dylan Baker baker.dylan.c at gmail.com
Fri Sep 11 15:08:26 PDT 2015


This is needed to make aggregate work correctly.

Signed-off-by: Dylan Baker <dylanx.c.baker at intel.com>
---
 framework/backends/json.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/framework/backends/json.py b/framework/backends/json.py
index b747e29..12a5ac7 100644
--- a/framework/backends/json.py
+++ b/framework/backends/json.py
@@ -232,6 +232,7 @@ def _load(results_file):
 
 def _resume(results_dir):
     """Loads a partially completed json results directory."""
+    # TODO: could probably use TestrunResult.from_dict here
     # Pylint can't infer that the json being loaded is a dict
     # pylint: disable=maybe-no-member
     assert os.path.isdir(results_dir), \
@@ -250,6 +251,8 @@ def _resume(results_dir):
     testrun.glxinfo = meta.get('glxinfo')
     testrun.lspci = meta.get('lspci')
 
+    set_meta(testrun)
+
     # Load all of the test names and added them to the test list
     for file_ in os.listdir(os.path.join(results_dir, 'tests')):
         with open(os.path.join(results_dir, 'tests', file_), 'r') as f:
-- 
2.5.1



More information about the Piglit mailing list