[Piglit] [PATCH 09/19] results.py: Rename JSONWriter.close_json to JSONWriter.finalize
Dylan Baker
baker.dylan.c at gmail.com
Thu Aug 28 15:35:37 PDT 2014
This makes the API consistent with Backend.
Signed-off-by: Dylan Baker <dylanx.c.baker at intel.com>
---
framework/programs/run.py | 4 ++--
framework/results.py | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/framework/programs/run.py b/framework/programs/run.py
index d2afeff..3639a16 100644
--- a/framework/programs/run.py
+++ b/framework/programs/run.py
@@ -236,7 +236,7 @@ def run(input_):
time_end = time.time()
results.time_elapsed = time_end - time_start
- json_writer.close_json({'time_elapsed': results.time_elapsed})
+ json_writer.finalize({'time_elapsed': results.time_elapsed})
print('Thank you for running Piglit!\n'
'Results have been written to ' + result_filepath)
@@ -287,7 +287,7 @@ def resume(input_):
# This is resumed, don't bother with time since it wont be accurate anyway
profile.run(opts, json_writer)
- json_writer.close_json()
+ json_writer.finalize()
print("Thank you for running Piglit!\n"
"Results have ben wrriten to {0}".format(results_path))
diff --git a/framework/results.py b/framework/results.py
index 0ebb5c5..906b93c 100644
--- a/framework/results.py
+++ b/framework/results.py
@@ -246,7 +246,7 @@ class JSONWriter(object):
self._write_dict_key('tests')
self._open_dict()
- def close_json(self, metadata=None):
+ def finalize(self, metadata=None):
""" End json serialization and cleanup
This method is called after all of tests are written, it closes any
--
2.1.0
More information about the Piglit
mailing list