diff options
author | Beat Bolli <dev@drbeat.li> | 2016-02-20 13:21:04 +0100 |
---|---|---|
committer | Jon Schlueter <jschlueter@redhat.com> | 2016-02-20 11:43:45 -0500 |
commit | 75dc272215381f4293caa8d022c3493e2ffdf985 (patch) | |
tree | ab20f92169517e647d02bfe3c2bdf37daf518682 /devtools | |
parent | 18307fcfbefb8a6e05de14930040137dfe526e87 (diff) | |
download | gpsd-75dc272215381f4293caa8d022c3493e2ffdf985.tar.gz |
Move loop invariants in front of the loop.
Signed-off-by: Beat Bolli <dev@drbeat.li>
Signed-off-by: Jon Schlueter <jschlueter@redhat.com>
Diffstat (limited to 'devtools')
-rwxr-xr-x | devtools/identify_failing_build_options.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/devtools/identify_failing_build_options.py b/devtools/identify_failing_build_options.py index e3238393..1e8f87af 100755 --- a/devtools/identify_failing_build_options.py +++ b/devtools/identify_failing_build_options.py @@ -79,7 +79,10 @@ knobs = [ def main(starting_number_of_options=0): import itertools + import subprocess + failed_configurations = [] + dev_null = open('/dev/null', 'w') static_params = [key + '=on' for key in always_on] static_params += [key + '=off' for key in always_off] @@ -94,8 +97,6 @@ def main(starting_number_of_options=0): # print {'on_params': row, 'scons_params': params} - dev_null = open('/dev/null', 'w') - import subprocess command = ['scons', '-j9'] command.extend(params) if os.path.exists('.scons-option-cache'): |