]> code.ossystems Code Review - openembedded-core.git/commitdiff
oeqa/runtime/parselogs.py: Add systemd unit circular dependencies errors.
authorAníbal Limón <anibal.limon@linux.intel.com>
Wed, 30 Mar 2016 20:21:41 +0000 (14:21 -0600)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 30 Mar 2016 20:32:11 +0000 (21:32 +0100)
When systemd is enabled as init we need to notice when circular
dependencies in units happen because systemd try to solve this situation
removing the unit itself.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oeqa/runtime/parselogs.py

index 4def53327c296dca8c1d10051dd38104eddb6dc1..dec9ebe87404b5eb7d93534a0a01531380a22638 100644 (file)
@@ -131,6 +131,17 @@ class ParseLogsTest(oeRuntimeTest):
     @classmethod
     def setUpClass(self):
         self.errors = errors
+
+        # When systemd is enabled we need to notice errors on
+        # circular dependencies in units.
+        if self.hasFeature("systemd"):
+            self.errors.extend([
+                'Found ordering cycle on',
+                'Breaking ordering cycle by deleting job',
+                'deleted to break ordering cycle',
+                'Ordering cycle found, skipping',
+                ])
+
         self.ignore_errors = ignore_errors
         self.log_locations = log_locations
         self.msg = ""