Pārlūkot izejas kodu

Merge remote-tracking branch 'origin/master' into develop

QMK Bot 4 gadi atpakaļ
vecāks
revīzija
f12000a1b6
2 mainītis faili ar 4 papildinājumiem un 2 dzēšanām
  1. 2 1
      lib/python/qmk/cli/compile.py
  2. 2 1
      lib/python/qmk/cli/flash.py

+ 2 - 1
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.')

+ 2 - 1
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.')