From: Denis Kenzior <denkenz@gmail.com>
To: iwd@lists.01.org
Subject: Re: [PATCH v2] test-runner: fix duplicate process output
Date: Tue, 02 Mar 2021 10:38:08 -0600 [thread overview]
Message-ID: <dd6c67e6-ae27-efd3-eabc-0b5d47c859c3@gmail.com> (raw)
In-Reply-To: <20210302163029.1980263-1-prestwoj@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 865 bytes --]
Hi James,
On 3/2/21 10:30 AM, James Prestwood wrote:
> Process output was being duplicated when -v was used. This was
> due to both stderr and stdout being appended to the write_fd list
> as well as stderr being set to stdout in the Popen call.
>
> To fix this only stdout should be appended to the write_fd list,
> but then there comes a problem with closing the streams. stdout
> cannot be closed, so instead it is special cased. A new
> verbose boolean was added to Process which, if True, will
> cause any output to be written to stdout explicitly.
> ---
> tools/test-runner | 14 ++++++++++----
> 1 file changed, 10 insertions(+), 4 deletions(-)
>
> v2:
> * Added check for self.verbose so long running
> processes get an IO watch and can actually
> print to the console with -v.
>
Applied, thanks.
Regards,
-Denis
prev parent reply other threads:[~2021-03-02 16:38 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-02 16:30 [PATCH v2] test-runner: fix duplicate process output James Prestwood
2021-03-02 16:38 ` Denis Kenzior [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=dd6c67e6-ae27-efd3-eabc-0b5d47c859c3@gmail.com \
--to=denkenz@gmail.com \
--cc=iwd@lists.01.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox