From 822fd37a97a2a7fa45b508ec4dbe9fa392274b8d Mon Sep 17 00:00:00 2001 From: Olli-Pekka Puolitaival Date: Thu, 20 Sep 2018 10:55:30 +0300 Subject: [PATCH] Move exception earlier --- tools/run_icetea.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/run_icetea.py b/tools/run_icetea.py index 41d580dfcd..80eb9caef0 100644 --- a/tools/run_icetea.py +++ b/tools/run_icetea.py @@ -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: