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

Dylan Baker baker.dylan.c at gmail.com
Thu May 15 09:00:50 PDT 2014


On Wednesday, May 14, 2014 17:13:27 Vinson Lee wrote:
> 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']:
> 

Reviewed-by: Dylan Baker <baker.dylan.c at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/piglit/attachments/20140515/ea0eee30/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.freedesktop.org/archives/piglit/attachments/20140515/ea0eee30/attachment.sig>


More information about the Piglit mailing list