mirror of
git://git.yoctoproject.org/poky
synced 2026-08-13 14:54:21 +00:00
runqemu: do not check return code of tput
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. (From OE-Core rev: c574aaf30c82ad397c0a6567b3cb52e7fb5d5829) Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
ec8a40e231
commit
047aab4f45
@ -1329,7 +1329,8 @@ def main():
|
||||
logger.info("SIGTERM received")
|
||||
os.kill(config.qemupid, signal.SIGTERM)
|
||||
config.cleanup()
|
||||
subprocess.check_call(["tput", "smam"])
|
||||
# Deliberately ignore the return code of 'tput smam'.
|
||||
subprocess.call(["tput", "smam"])
|
||||
signal.signal(signal.SIGTERM, sigterm_handler)
|
||||
|
||||
config.check_args()
|
||||
@ -1351,7 +1352,8 @@ def main():
|
||||
return 1
|
||||
finally:
|
||||
config.cleanup()
|
||||
subprocess.check_call(["tput", "smam"])
|
||||
# Deliberately ignore the return code of 'tput smam'.
|
||||
subprocess.call(["tput", "smam"])
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.exit(main())
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user