Move exception earlier

pull/8181/head
Olli-Pekka Puolitaival 2018-09-20 10:55:30 +03:00
parent f5ad414cca
commit 822fd37a97
1 changed files with 3 additions and 3 deletions

View File

@ -166,12 +166,12 @@ def get_application_list(icetea_json_output, tests_by_name):
def icetea_tests(target, tcdir, verbose):
command = ['icetea', '--tcdir', tcdir, '--list', '--json', '--platform_filter', target] \
+ (['-v'] if verbose else [])
if not os.path.exists(tcdir):
raise Exception("Icetea run error: No TEST_APPS folder in {}".format(os.path.curdir))
command = ['icetea', '--tcdir', tcdir, '--list', '--json', '--platform_filter', target] \
+ (['-v'] if verbose else [])
stdout, stderr, returncode = run_cmd(command)
if returncode != 0: