mirror of https://github.com/ARMmbed/mbed-os.git
Removed exit(-1) when checking for missing modules. Instead now it will be prompted to used when singletest starts
parent
a40d0bb4ca
commit
7935e0f5ea
|
@ -57,10 +57,7 @@ sys.path.insert(0, ROOT)
|
||||||
|
|
||||||
# Check: Extra modules which are required by core test suite
|
# Check: Extra modules which are required by core test suite
|
||||||
from workspace_tools.utils import check_required_modules
|
from workspace_tools.utils import check_required_modules
|
||||||
|
check_required_modules(['prettytable', 'serial'])
|
||||||
if not check_required_modules(['prettytable', 'serial']):
|
|
||||||
exit(-1)
|
|
||||||
|
|
||||||
|
|
||||||
# Imports related to mbed build api
|
# Imports related to mbed build api
|
||||||
from workspace_tools.build_api import mcu_toolchain_matrix
|
from workspace_tools.build_api import mcu_toolchain_matrix
|
||||||
|
|
|
@ -115,8 +115,8 @@ def check_required_modules(required_modules, verbose=True):
|
||||||
all_modules_found = False
|
all_modules_found = False
|
||||||
not_installed_modules.append(module_name)
|
not_installed_modules.append(module_name)
|
||||||
if verbose:
|
if verbose:
|
||||||
print "Error message: %s"% e
|
print "Error: %s"% e
|
||||||
if verbose:
|
if verbose:
|
||||||
if not all_modules_found:
|
if not all_modules_found:
|
||||||
print "Module(s) %s not installed. Please install required module(s) before using this script."% (', '.join(not_installed_modules))
|
print "Warning: Module(s) %s not installed. Please install required module(s) before using this script."% (', '.join(not_installed_modules))
|
||||||
return all_modules_found
|
return all_modules_found
|
||||||
|
|
Loading…
Reference in New Issue