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
|
||||
from workspace_tools.utils import check_required_modules
|
||||
|
||||
if not check_required_modules(['prettytable', 'serial']):
|
||||
exit(-1)
|
||||
|
||||
check_required_modules(['prettytable', 'serial'])
|
||||
|
||||
# Imports related to mbed build api
|
||||
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
|
||||
not_installed_modules.append(module_name)
|
||||
if verbose:
|
||||
print "Error message: %s"% e
|
||||
print "Error: %s"% e
|
||||
if verbose:
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue