[Piglit] [PATCH] outerproduct_tests: Add positional argument specifiers.

Vinson Lee vlee at freedesktop.org
Wed May 14 17:13:27 PDT 2014


Fix build errors with Python < 2.7.

Signed-off-by: Vinson Lee <vlee at freedesktop.org>
Reviewed-by: Dylan Baker <baker.dylan.c at gmail.com>
---
 generated_tests/gen_outerproduct_tests.py |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/generated_tests/gen_outerproduct_tests.py b/generated_tests/gen_outerproduct_tests.py
index 38bf834..fdc3810 100644
--- a/generated_tests/gen_outerproduct_tests.py
+++ b/generated_tests/gen_outerproduct_tests.py
@@ -46,13 +46,13 @@ def main():
 
     for c, r in itertools.product(xrange(2, 5), repeat=2):
         vecs = [
-            Parameters(c, r, 'vec', 'mat{}x{}'.format(r, c)),
-            Parameters(c, r, 'ivec', 'mat{}x{}'.format(r, c))
+            Parameters(c, r, 'vec', 'mat{0}x{1}'.format(r, c)),
+            Parameters(c, r, 'ivec', 'mat{0}x{1}'.format(r, c))
         ]
         if r == c:
             vecs.extend([
-                Parameters(c, r, 'vec', 'mat{}'.format(r)),
-                Parameters(c, r, 'ivec', 'mat{}'.format(r))
+                Parameters(c, r, 'vec', 'mat{0}'.format(r)),
+                Parameters(c, r, 'ivec', 'mat{0}'.format(r))
             ])
 
         for shader in ['vs', 'fs']:
-- 
1.7.1



More information about the Piglit mailing list