Skip to content

Commit

Permalink
Move exception earlier
Browse files Browse the repository at this point in the history
  • Loading branch information
Olli-Pekka Puolitaival committed Sep 20, 2018
1 parent f5ad414 commit 822fd37
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tools/run_icetea.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 822fd37

Please sign in to comment.