[Piglit] [PATCH] piglit-resume.py: Fix bug in resume

Dylan Baker baker.dylan.c at gmail.com
Mon Dec 23 20:04:02 PST 2013

This patch removes an additional JSONWriter.close_dict() call. This
extra call closed the tests dictionary after writing the previous tests
into it, which means when it is passed into TestProfile.run() the tests
are already closed and new tests are not written into the tests

Signed-off-by: Dylan Baker <baker.dylan.c at gmail.com>
 piglit-resume.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/piglit-resume.py b/piglit-resume.py
index ae5de9b..a15cc77 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)
-    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()

More information about the Piglit mailing list