public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
From: Anton Mikanovich <amikan@ilbers.de>
To: isar-users@googlegroups.com
Cc: Anton Mikanovich <amikan@ilbers.de>
Subject: [PATCH 2/2] CI: Ignore POLLHUP events in log
Date: Thu, 28 Oct 2021 18:28:49 +0300	[thread overview]
Message-ID: <20211028152849.244705-3-amikan@ilbers.de> (raw)
In-Reply-To: <20211028152849.244705-1-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:
-- 
2.25.1


  parent reply	other threads:[~2021-10-28 15:29 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 ` Anton Mikanovich [this message]
2021-10-28 18:26   ` [PATCH 2/2] CI: Ignore POLLHUP events in log Henning Schild

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=20211028152849.244705-3-amikan@ilbers.de \
    --to=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