summaryrefslogtreecommitdiff
path: root/piglit-run.py
diff options
context:
space:
mode:
authorDylan Baker <baker.dylan.c@gmail.com>2013-11-15 10:00:49 -0800
committerDylan Baker <baker.dylan.c@gmail.com>2013-11-19 09:29:51 -0800
commit0618aa38d4a8a7c82994fb28a41576da9a2cc414 (patch)
tree7d4ce80b964af40a104e9539202bfc7db0e5c99f /piglit-run.py
parentcb29ebf7aa5f6b5d3f61487167d3d624c009e6e5 (diff)
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 <Kkphillisjr@gmail.com> Signed-off-by: Dylan Baker <baker.dylan.c@gmail.com>
Diffstat (limited to 'piglit-run.py')
-rwxr-xr-xpiglit-run.py5
1 files changed, 2 insertions, 3 deletions
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)