[Piglit] [PATCH] deqp_gles3.py: Fix PEP 8 issues.

Vinson Lee vlee at freedesktop.org
Sun Mar 8 13:41:43 PDT 2015


Signed-off-by: Vinson Lee <vlee at freedesktop.org>
---
 tests/deqp_gles3.py | 19 +++++++++++--------
 1 file changed, 11 insertions(+), 8 deletions(-)

diff --git a/tests/deqp_gles3.py b/tests/deqp_gles3.py
index 9b048f5..66f6ae3 100644
--- a/tests/deqp_gles3.py
+++ b/tests/deqp_gles3.py
@@ -81,7 +81,8 @@ DEQP_GLES3_EXE = get_option('PIGLIT_DEQP_GLES3_EXE', ('deqp-gles3', 'exe'))
 
 # Path to the xml file which contained the case list of the subset of dEQP
 # and marked as must pass in CTS.
-DEQP_MUSTPASS = get_option('PIGLIT_DEQP_MUSTPASS', ('deqp-gles3', 'mustpasslist'))
+DEQP_MUSTPASS = get_option('PIGLIT_DEQP_MUSTPASS', ('deqp-gles3',
+                                                    'mustpasslist'))
 
 DEQP_GLES3_EXTRA_ARGS = get_option('PIGLIT_DEQP_GLES3_EXTRA_ARGS',
                                    ('deqp-gles3', 'extra_args'))
@@ -121,17 +122,18 @@ def iter_deqp_test_cases():
             elif line.startswith('TEST:'):
                 yield line[len('TEST:'):].strip()
             else:
-                raise Exception('{0}:{1}: ill-formed line'.format(caselist_path, i))
+                raise Exception(
+                    '{0}:{1}: ill-formed line'.format(caselist_path, i))
 
 
 class DEQPTest(Test):
 
-    __RESULT_MAP = {"Pass"           : "pass",
-                    "Fail"           : "fail",
-                    "QualityWarning" : "warn",
-                    "InternalError"  : "fail",
-                    "Crash"          : "crash",
-                    "NotSupported"   : "skip"}
+    __RESULT_MAP = {"Pass": "pass",
+                    "Fail": "fail",
+                    "QualityWarning": "warn",
+                    "InternalError": "fail",
+                    "Crash": "crash",
+                    "NotSupported": "skip"}
 
     def __init__(self, case_name):
         command = [DEQP_GLES3_EXE, '--deqp-case=' + case_name]
@@ -158,6 +160,7 @@ class DEQPTest(Test):
         # We failed to parse the test output. Fallback to 'fail'.
         self.result['result'] = 'fail'
 
+
 def add_tests():
     if DEQP_GLES3_EXE is None:
         return
-- 
2.3.1



More information about the Piglit mailing list