From: Michael Halstead Date: Thu, 8 Nov 2018 20:58:39 +0000 (-0800) Subject: scripts/runqemu: Replace subprocess.run() for compatibilty X-Git-Tag: uninative-2.4~1193 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=3a09cee5994ce65079dab1042e47e5eed4540bb9;p=openembedded-core.git scripts/runqemu: Replace subprocess.run() for compatibilty subprocess.run() was introduced in Python 3.5. We currently support down to Python 3.4 so I've replaced it with subprocess.check_call() which is available in that version. Signed-off-by: Michael Halstead Signed-off-by: Richard Purdie --- diff --git a/scripts/runqemu b/scripts/runqemu index 0c61253d6a..c79be9a846 100755 --- a/scripts/runqemu +++ b/scripts/runqemu @@ -1321,7 +1321,7 @@ def main(): logger.info("SIGTERM received") os.kill(config.qemupid, signal.SIGTERM) config.cleanup() - subprocess.run(["tput", "smam"]) + subprocess.check_call(["tput", "smam"]) signal.signal(signal.SIGTERM, sigterm_handler) config.check_args() @@ -1343,7 +1343,7 @@ def main(): return 1 finally: config.cleanup() - subprocess.run(["tput", "smam"]) + subprocess.check_call(["tput", "smam"]) if __name__ == "__main__": sys.exit(main())