summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVinson Lee <vlee@freedesktop.org>2015-03-08 13:43:12 -0700
committerVinson Lee <vlee@freedesktop.org>2015-03-09 12:35:32 -0700
commit03994ca303348e13017fb8aff14ce434f7ba2e91 (patch)
tree1408c76f71ccd465046c3b5cb67dfd3837737ae5
parent5864a5c47fdcae66a11f7ec67761d889ca7f0817 (diff)
es3conform.py: Fix PEP 8 issues.
Signed-off-by: Vinson Lee <vlee@freedesktop.org> Reviewed-by: Dylan Baker <baker.dylan.c@gmail.com>
-rw-r--r--tests/es3conform.py15
1 files changed, 9 insertions, 6 deletions
diff --git a/tests/es3conform.py b/tests/es3conform.py
index 540a73908..20b408b59 100644
--- a/tests/es3conform.py
+++ b/tests/es3conform.py
@@ -32,11 +32,11 @@ from framework.test import TEST_BIN_DIR, Test
__all__ = ['profile']
#############################################################################
-##### GTFTest: Execute a sub-test of the Khronos ES 3.0 Conformance suite.
-#####
-##### To use this, create a 'GTF3' symlink in piglit/bin which points to the
-##### Khronos 'GTF' executable. Piglit will automatically add all .test
-##### files into the 'gtf' category.
+# GTFTest: Execute a sub-test of the Khronos ES 3.0 Conformance suite.
+#
+# To use this, create a 'GTF3' symlink in piglit/bin which points to the
+# Khronos 'GTF' executable. Piglit will automatically add all .test
+# files into the 'gtf' category.
#############################################################################
if not path.exists(path.join(TEST_BIN_DIR, 'GTF3')):
@@ -47,8 +47,10 @@ profile = TestProfile()
# Chase the piglit/bin/GTF symlink to find where the tests really live.
gtfroot = path.dirname(path.realpath(path.join(TEST_BIN_DIR, 'GTF3')))
+
class GTFTest(Test):
- pass_re = re.compile(r'(Conformance|Regression) PASSED all (?P<passed>\d+) tests')
+ pass_re = re.compile(
+ r'(Conformance|Regression) PASSED all (?P<passed>\d+) tests')
def __init__(self, testpath):
super(GTFTest, self).__init__([path.join(TEST_BIN_DIR, 'GTF3'),
@@ -62,6 +64,7 @@ class GTFTest(Test):
else:
self.result['result'] = 'fail'
+
def populateTests(runfile):
"Read a .run file, adding any .test files to the profile"
with open(runfile, 'r') as f: