]> code.ossystems Code Review - openembedded-core.git/commitdiff
lib/oeqa/runtime/dmesg.py: whitelist dmesg message for systemd net interface name
authorStefan Stanacar <stefanx.stanacar@intel.com>
Mon, 8 Jul 2013 13:40:00 +0000 (16:40 +0300)
committerSaul Wold <sgw@linux.intel.com>
Mon, 15 Jul 2013 17:29:26 +0000 (10:29 -0700)
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.

Signed-off-by: Stefan Stanacar <stefanx.stanacar@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
meta/lib/oeqa/runtime/dmesg.py

index b0e2175bec1c9b722ddcf19a7e8c3e40972f3586..48370fbb0cae1fa8e654807ed3dcb99c0989591b 100644 (file)
@@ -9,5 +9,5 @@ class DmesgTest(oeRuntimeTest):
 
     @skipUnlessPassed('test_ssh')
     def test_dmesg(self):
-        (status, output) = self.target.run('dmesg | grep -v mmci-pl18x | grep -i error')
+        (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)