Skip to content

Commit 3437829

Browse files
committed
return the number of failures from the script
1 parent f983292 commit 3437829

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tools/test/examples/examples.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,13 +65,14 @@ def main():
6565
type=argparse_force_uppercase_type(SUPPORTED_TOOLCHAINS,
6666
"toolchain"))
6767
args = parser.parse_args()
68-
args.fn(args)
68+
return args.fn(args)
6969

7070

7171
def do_import(_):
7272
"""Do the import step of this process"""
7373
for example, _ in EXAMPLES.iteritems():
7474
subprocess.call(["mbed-cli", "import", example])
75+
return 0
7576

7677

7778
def do_compile(args):

0 commit comments

Comments
 (0)