[Piglit] [PATCH 2/4] piglit-resume.py: pep8 fixes
Dylan Baker
baker.dylan.c at gmail.com
Thu Dec 12 14:40:19 PST 2013
This fixes pep8 whitespace errors
Signed-off-by: Dylan Baker <baker.dylan.c at gmail.com>
---
piglit-resume.py | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
diff --git a/piglit-resume.py b/piglit-resume.py
index ae5de9b..9e14b16 100755
--- a/piglit-resume.py
+++ b/piglit-resume.py
@@ -36,7 +36,7 @@ def main():
metavar="<Results Path>",
help="Path to results folder")
args = parser.parse_args()
-
+
results = core.load_results(args.results_path)
env = core.Environment(concurrent=results.options['concurrent'],
exclude_filter=results.options['exclude_filter'],
@@ -44,10 +44,10 @@ def main():
execute=results.options['execute'],
valgrind=results.options['valgrind'],
dmesg=results.options['dmesg'])
-
+
# Change working directory to the piglit directory
os.chdir(path.dirname(path.realpath(sys.argv[0])))
-
+
results_path = path.join(args.results_path, "main")
json_writer = core.JSONWriter(open(results_path, 'w+'))
json_writer.open_dict()
@@ -56,29 +56,29 @@ def main():
for key, value in results.options.iteritems():
json_writer.write_dict_item(key, value)
json_writer.close_dict()
-
+
json_writer.write_dict_item('name', results.name)
for (key, value) in env.collectData().items():
json_writer.write_dict_item(key, value)
-
+
json_writer.write_dict_key('tests')
json_writer.open_dict()
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
profile.run(env, json_writer)
-
+
json_writer.close_dict()
json_writer.close_dict()
json_writer.file.close()
-
+
print("\n"
"Thank you for running Piglit!\n"
"Results have ben wrriten to {0}".format(results_path))
-
+
if __name__ == "__main__":
- main()
\ No newline at end of file
+ main()
--
1.8.5.1
More information about the Piglit
mailing list