return the number of failures from the script

pull/2576/head
Jimmy Brisson 2016-09-01 16:01:12 -05:00
parent f983292a6b
commit 3437829af1
1 changed files with 2 additions and 1 deletions

View File

@ -65,13 +65,14 @@ def main():
type=argparse_force_uppercase_type(SUPPORTED_TOOLCHAINS,
"toolchain"))
args = parser.parse_args()
args.fn(args)
return args.fn(args)
def do_import(_):
"""Do the import step of this process"""
for example, _ in EXAMPLES.iteritems():
subprocess.call(["mbed-cli", "import", example])
return 0
def do_compile(args):