[Piglit] [PATCH v3 24/29] gen_non-lvalue_tests.py: PEP8 compliance
Dylan Baker
baker.dylan.c at gmail.com
Wed Jul 24 14:57:07 PDT 2013
Signed-off-by: Dylan Baker <baker.dylan.c at gmail.com>
Reviewed-by: Chad Versace <chad.versace at linux.intel.com>
---
generated_tests/gen_non-lvalue_tests.py | 33 +++++++++++++++++----------------
1 file changed, 17 insertions(+), 16 deletions(-)
diff --git a/generated_tests/gen_non-lvalue_tests.py b/generated_tests/gen_non-lvalue_tests.py
index f977b39..0b545bb 100644
--- a/generated_tests/gen_non-lvalue_tests.py
+++ b/generated_tests/gen_non-lvalue_tests.py
@@ -131,32 +131,33 @@ void main()
mode = 'varying'
dest = "gl_FragColor"
- test = test.format(self = self,
- components = components,
- dest = dest,
- var_as_vec4 = var_as_vec4,
- mode = mode)
+ test = test.format(self=self,
+ components=components,
+ dest=dest,
+ var_as_vec4=var_as_vec4,
+ mode=mode)
filename = self.filename()
- dirname = os.path.dirname(filename)
- if not os.path.exists(dirname):
- os.makedirs(dirname)
- with open(filename, 'w') as f:
- f.write(test)
+ dirname = os.path.dirname(filename)
+ if not os.path.exists(dirname):
+ os.makedirs(dirname)
+ with open(filename, 'w') as f:
+ f.write(test)
def all_tests():
- for type_name in ['float', 'vec2', 'vec3', 'vec4',
- 'int', 'ivec2', 'ivec3', 'ivec4']:
+ for type_name in ['float', 'vec2', 'vec3', 'vec4', 'int', 'ivec2', 'ivec3',
+ 'ivec4']:
for op in ["++t", "--t", "t++", "t--"]:
for usage in ['assignment', 'out-parameter']:
- for shader_target in ['vert', 'frag']:
- yield Test(type_name, op, usage, shader_target)
+ for shader_target in ['vert', 'frag']:
+ yield Test(type_name, op, usage, shader_target)
+
def main():
for test in all_tests():
- test.generate()
- print test.filename()
+ test.generate()
+ print test.filename()
if __name__ == '__main__':
--
1.8.3.1
More information about the Piglit
mailing list