diff options
-rwxr-xr-x | progs/gallium/python/tests/texture_blit.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/progs/gallium/python/tests/texture_blit.py b/progs/gallium/python/tests/texture_blit.py index a2e62c89ee3..5ae0a7398d7 100755 --- a/progs/gallium/python/tests/texture_blit.py +++ b/progs/gallium/python/tests/texture_blit.py @@ -579,7 +579,10 @@ def main(): ctx = dev.context_create() - n = 10000 + try: + n = int(sys.argv[1]) + except: + n = 10000 for i in range(n): format = random.choice(formats.keys()) |