[oe-commits] [openembedded-core] 09/39: scripts/runqemu: Replace subprocess.run() for compatibilty

git at git.openembedded.org git at git.openembedded.org
Sun Nov 11 09:17:06 UTC 2018


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit cc63c93aa7e5dfe6ef4e754b11ffbf69dee9c13d
Author: Michael Halstead <mhalstead at linuxfoundation.org>
AuthorDate: Thu Nov 8 12:58:39 2018 -0800

    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 at linuxfoundation.org>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 scripts/runqemu | 4 ++--
 1 file 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():
             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()
@@ -1343,7 +1343,7 @@ def main():
         return 1
     finally:
         config.cleanup()
-        subprocess.run(["tput", "smam"])
+        subprocess.check_call(["tput", "smam"])
 
 if __name__ == "__main__":
     sys.exit(main())

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list