From: Ian Romanick Date: Wed, 26 May 2004 17:12:56 +0000 (+0000) Subject: Minor code simplification. X-Git-Tag: mesa-7.8~11009 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=77bbbb3759c83e66f0391651597c400fea2d95e4;p=platform%2Fupstream%2Fmesa.git Minor code simplification. --- diff --git a/progs/tests/api_speed.py b/progs/tests/api_speed.py index d2096762..4f54830 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