From: José Fonseca Date: Wed, 31 Mar 2010 19:05:10 +0000 (+0100) Subject: python/tests: Read the number of tests to execute from command line. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3200e708582f75b3566a85228de9a698edbfb022;p=mesa.git python/tests: Read the number of tests to execute from command line. --- 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())