From 3437829af175793afe209e1d02264840e1451eff Mon Sep 17 00:00:00 2001 From: Jimmy Brisson Date: Thu, 1 Sep 2016 16:01:12 -0500 Subject: [PATCH] return the number of failures from the script --- tools/test/examples/examples.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/test/examples/examples.py b/tools/test/examples/examples.py index 9ecc79ea21..50dafca931 100644 --- a/tools/test/examples/examples.py +++ b/tools/test/examples/examples.py @@ -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):