summaryrefslogtreecommitdiff
path: root/progs/tests
diff options
context:
space:
mode:
authorIan Romanick <idr@us.ibm.com>2004-05-26 17:12:56 +0000
committerIan Romanick <idr@us.ibm.com>2004-05-26 17:12:56 +0000
commit77bbbb3759c83e66f0391651597c400fea2d95e4 (patch)
treeb9ea79bf3d4e2ee0ad3c642dcb7fc61a8299866e /progs/tests
parent63b2e426acc81b0b5da82ca290ea42b5c9db7423 (diff)
Minor code simplification.
Diffstat (limited to 'progs/tests')
-rwxr-xr-xprogs/tests/api_speed.py21
1 files changed, 9 insertions, 12 deletions
diff --git a/progs/tests/api_speed.py b/progs/tests/api_speed.py
index d209676261..4f5483064d 100755
--- a/progs/tests/api_speed.py
+++ b/progs/tests/api_speed.py
@@ -109,25 +109,22 @@ if __name__ == '__main__':
show_usage()
- result_array = []
- names = []
-
-
# If no libraries were specifically named, just run the test against
# the default system libGL.
if len(trail) == 0:
- s = make_execution_string( None, iterations )
+ trail.append(None)
+
+
+ result_array = []
+ names = []
+
+ for lib in trail:
+ s = make_execution_string( lib, iterations )
r = results()
r.process_file( os.popen(s) )
+ names.append(lib)
result_array.append(r)
- else:
- for lib in trail:
- s = make_execution_string( lib, iterations )
- r = results()
- r.process_file( os.popen(s) )
- names.append(lib)
- result_array.append(r)
# If the test was only run against one library, just show the results