From 0618aa38d4a8a7c82994fb28a41576da9a2cc414 Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Fri, 15 Nov 2013 10:00:49 -0800 Subject: piglit-run.py: Record all attributes of Environment and restore them This causes all attributes in the Environment instance env to be dumped into the json and reloaded on a resume. It adds an __iter__ magic method to core.Environment to allow this. Reviewed by: Kenney Phillis Signed-off-by: Dylan Baker --- piglit-run.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'piglit-run.py') diff --git a/piglit-run.py b/piglit-run.py index b676c42b2..75d33cebc 100755 --- a/piglit-run.py +++ b/piglit-run.py @@ -137,9 +137,8 @@ def main(): json_writer.write_dict_key('options') json_writer.open_dict() json_writer.write_dict_item('profile', args.test_profile) - json_writer.write_dict_item('filter', args.include_tests) - json_writer.write_dict_item('exclude_filter', args.exclude_tests) - json_writer.write_dict_item('concurrency', args.concurrency) + for key, value in env: + json_writer.write_dict_item(key, value) json_writer.close_dict() json_writer.write_dict_item('name', results.name) -- cgit v1.2.3