mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-19 18:50:43 +02:00
Minor code simplification.
This commit is contained in:
parent
63b2e426ac
commit
77bbbb3759
1 changed files with 9 additions and 12 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue