mirror of
https://git.yoctoproject.org/poky
synced 2026-06-01 00:59:48 +00:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
d0e0a3d7a8
commit
fecdb7c64a
+2
-2
@@ -1316,7 +1316,7 @@ def main():
|
|||||||
logger.info("SIGTERM received")
|
logger.info("SIGTERM received")
|
||||||
os.kill(config.qemupid, signal.SIGTERM)
|
os.kill(config.qemupid, signal.SIGTERM)
|
||||||
config.cleanup()
|
config.cleanup()
|
||||||
subprocess.run(["tput", "smam"])
|
subprocess.check_call(["tput", "smam"])
|
||||||
signal.signal(signal.SIGTERM, sigterm_handler)
|
signal.signal(signal.SIGTERM, sigterm_handler)
|
||||||
|
|
||||||
config.check_args()
|
config.check_args()
|
||||||
@@ -1338,7 +1338,7 @@ def main():
|
|||||||
return 1
|
return 1
|
||||||
finally:
|
finally:
|
||||||
config.cleanup()
|
config.cleanup()
|
||||||
subprocess.run(["tput", "smam"])
|
subprocess.check_call(["tput", "smam"])
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
sys.exit(main())
|
sys.exit(main())
|
||||||
|
|||||||
Reference in New Issue
Block a user