arb_texture_barrier: use itertools.product instead of nested loops

Submitted by apinheiro on July 22, 2016, 6:09 a.m.

Details

Message ID 1469167763-9946-1-git-send-email-apinheiro@igalia.com
State New
Headers show
Series "arb_texture_barrier: use itertools.product instead of nested loops" ( rev: 1 ) in Piglit

Not browsing as part of any series.

Commit Message

apinheiro July 22, 2016, 6:09 a.m.
---
 tests/all.py | 11 ++++-------
 1 file changed, 4 insertions(+), 7 deletions(-)

Patch hide | download patch | download mbox

diff --git a/tests/all.py b/tests/all.py
index 2c78b0a..a29724e 100644
--- a/tests/all.py
+++ b/tests/all.py
@@ -4722,13 +4722,10 @@  with profile.group_manager(
 with profile.group_manager(
         PiglitGLTest,
         grouptools.join('spec', 'arb_texture_barrier')) as g:
-    for resolution in ['32', '512']:
-        for blend_passes in ['1', '42']:
-            for num_textures in ['1', '8']:
-                for granularity in ['8', '64', '128']:
-                    for draw_passes in ['1', '2', '3', '4', '7', '8']:
-                        g(['arb_texture_barrier-blending-in-shader', resolution,
-                           blend_passes, num_textures, granularity, draw_passes])
+    for resolution, blend_passes, num_textures, granularity, draw_passes in itertools.product(
+            ['32', '512'], ['1', '42'], ['1', '8'], ['8', '64', '128'], ['1', '2', '3', '4', '7', '8']):
+        g(['arb_texture_barrier-blending-in-shader', resolution,
+           blend_passes, num_textures, granularity, draw_passes])
 
 
 # Group ARB_invalidate_subdata