ping

On 01/25/2019 11:18 AM, Chen Qi wrote:
The subprocess.run was replaced by subprocess.check_call because
of compatibility support down to python 3.4. But we really don't
care about whether that command succeeds. Some user reports that
in some tmux environment, this command fails and gives some
unpleasant traceback output. So we use 'call' instead of 'check_call'
to avoid such problem.

Signed-off-by: Chen Qi <qi.c...@windriver.com>
---
  scripts/runqemu | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/scripts/runqemu b/scripts/runqemu
index c4a0ca8..d3239ee 100755
--- a/scripts/runqemu
+++ b/scripts/runqemu
@@ -1318,7 +1318,7 @@ def main():
              logger.info("SIGTERM received")
              os.kill(config.qemupid, signal.SIGTERM)
              config.cleanup()
-            subprocess.check_call(["tput", "smam"])
+            subprocess.call(["tput", "smam"])
          signal.signal(signal.SIGTERM, sigterm_handler)
config.check_args()
@@ -1340,7 +1340,7 @@ def main():
          return 1
      finally:
          config.cleanup()
-        subprocess.check_call(["tput", "smam"])
+        subprocess.call(["tput", "smam"])
if __name__ == "__main__":
      sys.exit(main())


--
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core

Reply via email to