summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Halstead <mhalstead@linuxfoundation.org>2018-11-08 12:58:39 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-12-06 10:12:39 +0000
commit4ba803d9834565cbe9a89838eb2fcf0328c44bef (patch)
tree279aa84acbf2d5610bf76ee62b97c4d251e01afd
parent0ac1b496823a57ac6a234a14c60318bf1ffa19b0 (diff)
downloadopenembedded-core-4ba803d9834565cbe9a89838eb2fcf0328c44bef.tar.gz
openembedded-core-4ba803d9834565cbe9a89838eb2fcf0328c44bef.tar.bz2
openembedded-core-4ba803d9834565cbe9a89838eb2fcf0328c44bef.zip
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 <mhalstead@linuxfoundation.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rwxr-xr-xscripts/runqemu4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/runqemu b/scripts/runqemu
index 087220ca0a..1fc27e5069 100755
--- a/scripts/runqemu
+++ b/scripts/runqemu
@@ -1316,7 +1316,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()
@@ -1338,7 +1338,7 @@ def main():
return 1
finally:
config.cleanup()
- subprocess.run(["tput", "smam"])
+ subprocess.check_call(["tput", "smam"])
if __name__ == "__main__":
sys.exit(main())