Skip to content

Commit 822fd37

Browse files
author
Olli-Pekka Puolitaival
committed
Move exception earlier
1 parent f5ad414 commit 822fd37

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tools/run_icetea.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,12 +166,12 @@ def get_application_list(icetea_json_output, tests_by_name):
166166

167167

168168
def icetea_tests(target, tcdir, verbose):
169-
command = ['icetea', '--tcdir', tcdir, '--list', '--json', '--platform_filter', target] \
170-
+ (['-v'] if verbose else [])
171-
172169
if not os.path.exists(tcdir):
173170
raise Exception("Icetea run error: No TEST_APPS folder in {}".format(os.path.curdir))
174171

172+
command = ['icetea', '--tcdir', tcdir, '--list', '--json', '--platform_filter', target] \
173+
+ (['-v'] if verbose else [])
174+
175175
stdout, stderr, returncode = run_cmd(command)
176176

177177
if returncode != 0:

0 commit comments

Comments
 (0)