diff options
author | Milo Casagrande <milo@ubuntu.com> | 2012-06-18 13:52:58 +0200 |
---|---|---|
committer | Milo Casagrande <milo@ubuntu.com> | 2012-06-18 13:52:58 +0200 |
commit | bb04b3dcbbe23b1e50efdd70a195f0f60f25f4f0 (patch) | |
tree | 09d15bc7e58fa2d73e15dedf4363d6b6bcade684 /build-scripts/post-build-lava.py | |
parent | 4c538ebde29256cc339fa9261ac13c8e2cd3322d (diff) |
Moved if clause before list init.
Diffstat (limited to 'build-scripts/post-build-lava.py')
-rwxr-xr-x | build-scripts/post-build-lava.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/build-scripts/post-build-lava.py b/build-scripts/post-build-lava.py index f7abc89..e01dce8 100755 --- a/build-scripts/post-build-lava.py +++ b/build-scripts/post-build-lava.py @@ -56,9 +56,9 @@ REBOOT_TOKEN = '[system-reboot]' def gen_lava_android_test_actions(tests=[]): actions = [] - test_actions = [test for test in tests if test != REBOOT_TOKEN] if len(tests) == 0: return actions + test_actions = [test for test in tests if test != REBOOT_TOKEN] if len(test_actions) > 0: inst_action = { |