]> code.ossystems Code Review - openembedded-core.git/commitdiff
oeqa/runtime/rpm: Drop log message counting test component
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 27 May 2021 13:59:22 +0000 (14:59 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 28 May 2021 05:40:30 +0000 (06:40 +0100)
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

index 8e18b426f8b38cfd0ee0dbe20de8f46ca8a06eff..7a9d62c0038abea38b8123a5d6b144b09fe76a66 100644 (file)
@@ -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))