From: Henning Schild <henning.schild@siemens.com>
To: Anton Mikanovich <amikan@ilbers.de>
Cc: isar-users@googlegroups.com
Subject: Re: [PATCH 2/2] CI: Ignore POLLHUP events in log
Date: Thu, 28 Oct 2021 20:26:42 +0200 [thread overview]
Message-ID: <20211028202642.4f3a0c03@md1za8fc.ad001.siemens.net> (raw)
In-Reply-To: <20211028152849.244705-3-amikan@ilbers.de>
Am Thu, 28 Oct 2021 18:28:49 +0300
schrieb Anton Mikanovich <amikan@ilbers.de>:
> Print only POLLIN event buffers to not show empty lines at POLLHUP
> events at the end of execution.
> This will reduce test log size.
>
> Signed-off-by: Anton Mikanovich <amikan@ilbers.de>
> ---
> testsuite/build_test/cibuilder.py | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/testsuite/build_test/cibuilder.py
> b/testsuite/build_test/cibuilder.py index baa7185..529e6ff 100644
> --- a/testsuite/build_test/cibuilder.py
> +++ b/testsuite/build_test/cibuilder.py
> @@ -92,9 +92,9 @@ class CIBuilder(Test):
> while p1.poll() is None:
> events = poller.poll(1000)
> for fd, event in events:
> - if fd == p1.stdout.fileno():
> + if fd == p1.stdout.fileno() and event ==
> select.POLLIN: self.log.info(p1.stdout.readline().rstrip())
> - if fd == p1.stderr.fileno():
> + if fd == p1.stderr.fileno() and event ==
> select.POLLIN: app_log.error(p1.stderr.readline().rstrip())
> p1.wait()
> if p1.returncode:
if event.POLLIN:
case 1:
case 2:
Henning
prev parent reply other threads:[~2021-10-28 18:26 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-28 15:28 [PATCH 0/2] Minimise CI test log Anton Mikanovich
2021-10-28 15:28 ` [PATCH 1/2] CI: Trace test only Anton Mikanovich
2021-10-28 15:28 ` [PATCH 2/2] CI: Ignore POLLHUP events in log Anton Mikanovich
2021-10-28 18:26 ` Henning Schild [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=20211028202642.4f3a0c03@md1za8fc.ad001.siemens.net \
--to=henning.schild@siemens.com \
--cc=amikan@ilbers.de \
--cc=isar-users@googlegroups.com \
/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