Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH 0/1] runqemu: do not check return code of tput
@ 2019-01-25  3:18 Chen Qi
  2019-01-25  3:18 ` [PATCH 1/1] " Chen Qi
  0 siblings, 1 reply; 4+ messages in thread
From: Chen Qi @ 2019-01-25  3:18 UTC (permalink / raw)
  To: openembedded-core

*** BLURB HERE ***
The following changes since commit 1979d9162a335b7d4718a6697ca57bfa16237f0e:

  bitbake: gitsmy.py: Fix unpack of submodules of submodules (2019-01-24 17:45:49 +0000)

are available in the git repository at:

  git://git.pokylinux.org/poky-contrib ChenQi/qemu-tput
  http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=ChenQi/qemu-tput

Chen Qi (1):
  runqemu: do not check return code of tput

 scripts/runqemu | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

-- 
1.9.1



^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH 1/1] runqemu: do not check return code of tput
  2019-01-25  3:18 [PATCH 0/1] runqemu: do not check return code of tput Chen Qi
@ 2019-01-25  3:18 ` Chen Qi
  2019-04-11  6:40   ` ChenQi
  2019-04-11 20:25   ` Richard Purdie
  0 siblings, 2 replies; 4+ messages in thread
From: Chen Qi @ 2019-01-25  3:18 UTC (permalink / raw)
  To: openembedded-core

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.Chen@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())
-- 
1.9.1



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 1/1] runqemu: do not check return code of tput
  2019-01-25  3:18 ` [PATCH 1/1] " Chen Qi
@ 2019-04-11  6:40   ` ChenQi
  2019-04-11 20:25   ` Richard Purdie
  1 sibling, 0 replies; 4+ messages in thread
From: ChenQi @ 2019-04-11  6:40 UTC (permalink / raw)
  To: openembedded-core

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.Chen@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())




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 1/1] runqemu: do not check return code of tput
  2019-01-25  3:18 ` [PATCH 1/1] " Chen Qi
  2019-04-11  6:40   ` ChenQi
@ 2019-04-11 20:25   ` Richard Purdie
  1 sibling, 0 replies; 4+ messages in thread
From: Richard Purdie @ 2019-04-11 20:25 UTC (permalink / raw)
  To: Chen Qi, openembedded-core

On Fri, 2019-01-25 at 11:18 +0800, 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.Chen@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"])

Can you send a v2 with a comment saying we're ignoring errors
deliberately please? Otherwise someone will just "fix" this again.

Cheers,

Richard



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-04-11 20:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-01-25  3:18 [PATCH 0/1] runqemu: do not check return code of tput Chen Qi
2019-01-25  3:18 ` [PATCH 1/1] " Chen Qi
2019-04-11  6:40   ` ChenQi
2019-04-11 20:25   ` Richard Purdie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox