summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorMichael Halstead <mhalstead@linuxfoundation.org>2018-11-08 20:58:39 (GMT)
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-11-14 11:14:39 (GMT)
commitaba0686c72ebf15ef0f08b7b33844a03891df9fa (patch)
tree32d1004c3ef0171de8d884fe1260914edc32f529 /scripts
parente69ac0cab6828041e76504205bddb5014e20eaff (diff)
downloadpoky-aba0686c72ebf15ef0f08b7b33844a03891df9fa.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: 3a09cee5994ce65079dab1042e47e5eed4540bb9) 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 0c61253..c79be9a 100755
--- a/scripts/runqemu
+++ b/scripts/runqemu
@@ -1321,7 +1321,7 @@ def main():
1321 logger.info("SIGTERM received") 1321 logger.info("SIGTERM received")
1322 os.kill(config.qemupid, signal.SIGTERM) 1322 os.kill(config.qemupid, signal.SIGTERM)
1323 config.cleanup() 1323 config.cleanup()
1324 subprocess.run(["tput", "smam"]) 1324 subprocess.check_call(["tput", "smam"])
1325 signal.signal(signal.SIGTERM, sigterm_handler) 1325 signal.signal(signal.SIGTERM, sigterm_handler)
1326 1326
1327 config.check_args() 1327 config.check_args()
@@ -1343,7 +1343,7 @@ def main():
1343 return 1 1343 return 1
1344 finally: 1344 finally:
1345 config.cleanup() 1345 config.cleanup()
1346 subprocess.run(["tput", "smam"]) 1346 subprocess.check_call(["tput", "smam"])
1347 1347
1348if __name__ == "__main__": 1348if __name__ == "__main__":
1349 sys.exit(main()) 1349 sys.exit(main())