From f5ad414cca59710f3b311d34c697ecb527a57ee8 Mon Sep 17 00:00:00 2001 From: Olli-Pekka Puolitaival Date: Wed, 19 Sep 2018 14:18:07 +0300 Subject: [PATCH] Check that TEST_APPS folder exists --- tools/run_icetea.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/run_icetea.py b/tools/run_icetea.py index eaec63921c..41d580dfcd 100644 --- a/tools/run_icetea.py +++ b/tools/run_icetea.py @@ -169,6 +169,9 @@ 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)) + stdout, stderr, returncode = run_cmd(command) if returncode != 0: