summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorDylan Baker <baker.dylan.c@gmail.com>2015-09-11 13:24:22 -0700
committerDylan Baker <baker.dylan.c@gmail.com>2015-09-22 14:45:48 -0700
commit9b39f0c3a706448e2fd4661621c5c46c5b397f38 (patch)
tree8fd10d193525aa427825f0679df35b0a58dfbcb3 /framework
parent891611605a5610fe13f6b168a5f3e8393575b7ed (diff)
framework/backends/json.py: call set_meta() on resume
This is needed to make aggregate work correctly. Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>
Diffstat (limited to 'framework')
-rw-r--r--framework/backends/json.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/framework/backends/json.py b/framework/backends/json.py
index b747e2930..12a5ac7de 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: