All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Richard Purdie" <richard.purdie@linuxfoundation.org>
To: openembedded-core@lists.openembedded.org
Subject: [hardknott] [PATCH 5/5] oeqa/runtime/rpm: Drop log message counting test component
Date: Wed,  2 Jun 2021 14:27:20 +0100	[thread overview]
Message-ID: <20210602132720.2921099-5-richard.purdie@linuxfoundation.org> (raw)
In-Reply-To: <20210602132720.2921099-1-richard.purdie@linuxfoundation.org>

This test is flawed since multiple parts of the system can write to the log
and we obtain different numbers of log messages depending on factors we
can't control.

Drop the log testing component of the test.

[YOCTO #12465]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
 meta/lib/oeqa/runtime/cases/rpm.py | 9 ---------
 1 file changed, 9 deletions(-)

diff --git a/meta/lib/oeqa/runtime/cases/rpm.py b/meta/lib/oeqa/runtime/cases/rpm.py
index 8e18b426f8b..7a9d62c0038 100644
--- a/meta/lib/oeqa/runtime/cases/rpm.py
+++ b/meta/lib/oeqa/runtime/cases/rpm.py
@@ -141,13 +141,4 @@ class RpmInstallRemoveTest(OERuntimeTestCase):
 
         self.tc.target.run('rm -f %s' % self.dst)
 
-        # if using systemd this should ensure all entries are flushed to /var
-        status, output = self.target.run("journalctl --sync")
-        # Get the amount of entries in the log file
-        status, output = self.target.run(check_log_cmd)
-        msg = 'Failed to get the final size of the log file.'
-        self.assertEqual(0, status, msg=msg)
 
-        # Check that there's enough of them
-        self.assertGreaterEqual(int(output), 80,
-                                   'Cound not find sufficient amount of rpm entries in /var/log/messages, found {} entries'.format(output))
-- 
2.30.2


  parent reply	other threads:[~2021-06-02 13:27 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-02 13:27 [hardknott] [PATCH 1/5] expat: set CVE_PRODUCT Richard Purdie
2021-06-02 13:27 ` [hardknott] [PATCH 2/5] flex: correct license information Richard Purdie
2021-06-02 13:27 ` [hardknott] [PATCH 3/5] pkgconfig: update SRC_URI Richard Purdie
2021-06-02 13:27 ` [hardknott] [PATCH 4/5] package_rpm: pass XZ_THREADS to rpm Richard Purdie
2021-06-02 13:27 ` Richard Purdie [this message]
2021-06-02 14:34 ` [OE-core] [hardknott] [PATCH 1/5] expat: set CVE_PRODUCT Michael Opdenacker
2021-06-02 22:36   ` Richard Purdie
2021-06-03 16:19     ` Michael Opdenacker

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=20210602132720.2921099-5-richard.purdie@linuxfoundation.org \
    --to=richard.purdie@linuxfoundation.org \
    --cc=openembedded-core@lists.openembedded.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.