summaryrefslogtreecommitdiff
path: root/progs/gallium
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2010-03-31 20:05:10 +0100
committerJosé Fonseca <jfonseca@vmware.com>2010-03-31 20:05:10 +0100
commit3200e708582f75b3566a85228de9a698edbfb022 (patch)
treedbe36423588bf5682f4906d82d7fff828a2a9eca /progs/gallium
parent96548d80e541691281a947836b673177542fd400 (diff)
python/tests: Read the number of tests to execute from command line.
Diffstat (limited to 'progs/gallium')
-rwxr-xr-xprogs/gallium/python/tests/texture_blit.py5
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 a2e62c89ee..5ae0a7398d 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())