Removed exit(-1) when checking for missing modules. Instead now it will be prompted to used when singletest starts

pull/570/head
Przemek Wirkus 2014-10-16 14:34:11 +01:00
parent a40d0bb4ca
commit 7935e0f5ea
2 changed files with 3 additions and 6 deletions

View File

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

View File

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