Check that TEST_APPS folder exists

pull/8181/head
Olli-Pekka Puolitaival 2018-09-19 14:18:07 +03:00
parent b8b11f0c8b
commit f5ad414cca
1 changed files with 3 additions and 0 deletions

View File

@ -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: