summaryrefslogtreecommitdiff
path: root/piglit-resume.py
diff options
context:
space:
mode:
authorDylan Baker <baker.dylan.c@gmail.com>2013-12-23 19:58:35 -0800
committerDylan Baker <baker.dylan.c@gmail.com>2013-12-26 14:46:49 -0800
commite55dc4b889d9302295f3debfe962ab718ce7830b (patch)
tree89ad162c23f115f738a194ef1f41060fc09287e3 /piglit-resume.py
parentb4e03176575d6de4ca5f3651922ec99da8e88b6d (diff)
piglit-resume.py: Fix bug in resume
This patch removes an additional JSONWriter.close_dict() call. This extra call closed the tests dictionary after writing the tests from the run into it; meaning when the JSONWriter instance is passed into TestProfile.run() the tests dictionary is already closed and new tests are not written into the root dictionary. Reviewed-by: Chad Versace <chad.versace@linux.intel.com> Signed-off-by: Dylan Baker <baker.dylan.c@gmail.com>
Diffstat (limited to 'piglit-resume.py')
-rwxr-xr-xpiglit-resume.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/piglit-resume.py b/piglit-resume.py
index ae5de9b96..a15cc77c8 100755
--- a/piglit-resume.py
+++ b/piglit-resume.py
@@ -66,7 +66,6 @@ def main():
for key, value in results.tests.iteritems():
json_writer.write_dict_item(key, value)
env.exclude_tests.add(key)
- json_writer.close_dict()
profile = core.loadTestProfile(results.options['profile'])
# This is resumed, don't bother with time since it wont be accurate anyway
@@ -81,4 +80,4 @@ def main():
"Results have ben wrriten to {0}".format(results_path))
if __name__ == "__main__":
- main() \ No newline at end of file
+ main()