python/tests: Read the number of tests to execute from command line.
authorJosé Fonseca <jfonseca@vmware.com>
Wed, 31 Mar 2010 19:05:10 +0000 (20:05 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Wed, 31 Mar 2010 19:05:10 +0000 (20:05 +0100)
progs/gallium/python/tests/texture_blit.py

index a2e62c89ee3bfe5a89e4289b2c35ebf410eebd1c..5ae0a7398d78bbc87ca0aa124d6e704fa6559848 100755 (executable)
@@ -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())