mirror of
https://git.yoctoproject.org/poky
synced 2026-03-06 15:29:40 +01:00
Messages such as: "systemd-udevd[79]: error changing net interface name eth0 to enp0s3: Device or resource busy" are harmless as systemd can't rename interfaces in qemu (the interface is already active). Alternatively, passing net.ifnames=0 to the kernel will stop systemd renaming the interfaces. (From OE-Core rev: c072fed6531f2ce3c687f8342a97f593ebf37653) Signed-off-by: Stefan Stanacar <stefanx.stanacar@intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
14 lines
536 B
Python
14 lines
536 B
Python
import unittest
|
|
from oeqa.oetest import oeRuntimeTest
|
|
from oeqa.utils.decorators import *
|
|
|
|
def setUpModule():
|
|
skipModuleUnless(oeRuntimeTest.tc.target.run('which dmesg')[0] == 0, "No dmesg in image or no connection")
|
|
|
|
class DmesgTest(oeRuntimeTest):
|
|
|
|
@skipUnlessPassed('test_ssh')
|
|
def test_dmesg(self):
|
|
(status, output) = self.target.run('dmesg | grep -v mmci-pl18x | grep -v "error changing net interface name" | grep -i error')
|
|
self.assertEqual(status, 1, msg = "Error messages in dmesg log: %s" % output)
|