summaryrefslogtreecommitdiffstats
path: root/scripts
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-16 14:31:32 +0000
commitfecdb7c64a7c76beab6d8c68949edaf9cf2e7a63 (patch)
treeefd9087165dcdd6645157fa5280771e1c2d85f74 /scripts
parentd0e0a3d7a8218fbbf057a922c86bcdd2cf469ce9 (diff)
downloadpoky-fecdb7c64a7c76beab6d8c68949edaf9cf2e7a63.tar.gz
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. (From OE-Core rev: 4ba803d9834565cbe9a89838eb2fcf0328c44bef) Signed-off-by: Michael Halstead <mhalstead@linuxfoundation.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-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():
1316 logger.info("SIGTERM received") 1316 logger.info("SIGTERM received")
1317 os.kill(config.qemupid, signal.SIGTERM) 1317 os.kill(config.qemupid, signal.SIGTERM)
1318 config.cleanup() 1318 config.cleanup()
1319 subprocess.run(["tput", "smam"]) 1319 subprocess.check_call(["tput", "smam"])
1320 signal.signal(signal.SIGTERM, sigterm_handler) 1320 signal.signal(signal.SIGTERM, sigterm_handler)
1321 1321
1322 config.check_args() 1322 config.check_args()
@@ -1338,7 +1338,7 @@ def main():
1338 return 1 1338 return 1
1339 finally: 1339 finally:
1340 config.cleanup() 1340 config.cleanup()
1341 subprocess.run(["tput", "smam"]) 1341 subprocess.check_call(["tput", "smam"])
1342 1342
1343if __name__ == "__main__": 1343if __name__ == "__main__":
1344 sys.exit(main()) 1344 sys.exit(main())