diff options
author | Zach White <skullydazed@gmail.com> | 2021-01-02 09:27:35 -0800 |
---|---|---|
committer | Drashna Jael're <drashna@live.com> | 2021-01-12 22:46:13 -0800 |
commit | 8f03f44ec773d4a917e1a81bc1102771cd04eb5c (patch) | |
tree | 268326e31b8e134eb0a459e1d93473762e4295ab /lib | |
parent | 882d3a37893bcac036b7d9d55398f9920a466e0d (diff) |
Return the make exit code for qmk compile and flash (#11402)
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/python/qmk/cli/compile.py | 3 | ||||
-rw-r--r-- | lib/python/qmk/cli/flash.py | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/lib/python/qmk/cli/compile.py b/lib/python/qmk/cli/compile.py index 341f365f8c..daee597d8e 100755 --- a/lib/python/qmk/cli/compile.py +++ b/lib/python/qmk/cli/compile.py @@ -48,7 +48,8 @@ def compile(cli): cli.log.info('Compiling keymap with {fg_cyan}%s', ' '.join(command)) if not cli.args.dry_run: cli.echo('\n') - subprocess.run(command) + compile = subprocess.run(command) + return compile.returncode else: cli.log.error('You must supply a configurator export, both `--keyboard` and `--keymap`, or be in a directory for a keyboard or keymap.') diff --git a/lib/python/qmk/cli/flash.py b/lib/python/qmk/cli/flash.py index cefb9ca31a..d720d42e71 100644 --- a/lib/python/qmk/cli/flash.py +++ b/lib/python/qmk/cli/flash.py @@ -81,7 +81,8 @@ def flash(cli): cli.log.info('Compiling keymap with {fg_cyan}%s', ' '.join(command)) if not cli.args.dry_run: cli.echo('\n') - subprocess.run(command) + compile = subprocess.run(command) + return compile.returncode else: cli.log.error('You must supply a configurator export, both `--keyboard` and `--keymap`, or be in a directory for a keyboard or keymap.') |