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:26 +0000
commitf7b5f33ae1ef9560917c39904c0813b28ae8ee7b (patch)
tree24b26a13d8b75a5e3ecda55e2fc7daa1c05ab04c /scripts
parentc5ee326ea9cbcbf33db40c4a4a3cdce6246f877d (diff)
downloadpoky-f7b5f33ae1ef9560917c39904c0813b28ae8ee7b.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: 1c61f3017a6a2d95747883c722c376763ec77c9d) 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 bd3aee0c2f..c9a351e251 100755
--- a/scripts/runqemu
+++ b/scripts/runqemu
@@ -1313,7 +1313,7 @@ def main():
1313 logger.info("SIGTERM received") 1313 logger.info("SIGTERM received")
1314 os.kill(config.qemupid, signal.SIGTERM) 1314 os.kill(config.qemupid, signal.SIGTERM)
1315 config.cleanup() 1315 config.cleanup()
1316 subprocess.run(["tput", "smam"]) 1316 subprocess.check_call(["tput", "smam"])
1317 signal.signal(signal.SIGTERM, sigterm_handler) 1317 signal.signal(signal.SIGTERM, sigterm_handler)
1318 1318
1319 config.check_args() 1319 config.check_args()
@@ -1335,7 +1335,7 @@ def main():
1335 return 1 1335 return 1
1336 finally: 1336 finally:
1337 config.cleanup() 1337 config.cleanup()
1338 subprocess.run(["tput", "smam"]) 1338 subprocess.check_call(["tput", "smam"])
1339 1339
1340if __name__ == "__main__": 1340if __name__ == "__main__":
1341 sys.exit(main()) 1341 sys.exit(main())