public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
From: Uladzimir Bely <ubely@ilbers.de>
To: isar-users@googlegroups.com
Subject: [PATCH 3/3] testsuite: Detect systemd services ordering cycle
Date: Fri, 16 Aug 2024 17:38:36 +0300	[thread overview]
Message-ID: <20240816144333.27467-4-ubely@ilbers.de> (raw)
In-Reply-To: <20240816144333.27467-1-ubely@ilbers.de>

This allows to recognize any cyclic dependencies between
systemd services.

Signed-off-by: Uladzimir Bely <ubely@ilbers.de>
---
 testsuite/cibuilder.py | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/testsuite/cibuilder.py b/testsuite/cibuilder.py
index 3f77cd42..1e2c265f 100755
--- a/testsuite/cibuilder.py
+++ b/testsuite/cibuilder.py
@@ -556,6 +556,8 @@ class CIBuilder(Test):
         # the printk of recipes-kernel/example-module
         module_output = b'Just an example'
         resize_output = None
+        # systemd service ordering cycle
+        ordering_cycle = b'Found ordering cycle'
         image_fstypes, wks_file, bbdistro = CIUtils.getVars(
             'IMAGE_FSTYPES', 'WKS_FILE', 'DISTRO', target=multiconfig
         )
@@ -582,6 +584,9 @@ class CIBuilder(Test):
                 else:
                     rc = 2
                     self.log.error("No example module output while expected")
+                if ordering_cycle in data:
+                    rc = 3
+                    self.log.error("Systemd services ordering cycle detected")
         return rc
 
     def vm_dump_dict(self, vm):
-- 
2.44.2

-- 
You received this message because you are subscribed to the Google Groups "isar-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to isar-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/isar-users/20240816144333.27467-4-ubely%40ilbers.de.

  parent reply	other threads:[~2024-08-16 14:43 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-16 14:38 [PATCH 0/3] " Uladzimir Bely
2024-08-16 14:38 ` [PATCH 1/3] Revert "expand-on-first-boot: Ensure that /tmp is writable" Uladzimir Bely
2024-08-16 14:38 ` [PATCH 2/3] expand-on-first-boot: Add /tmp to ConditionPathIsReadWrite Uladzimir Bely
2024-08-16 14:38 ` Uladzimir Bely [this message]
2024-08-19  5:17 ` [PATCH 0/3] Detect systemd services ordering cycle Uladzimir Bely
2024-08-21  4:49 ` Uladzimir Bely
2024-08-31  8:45   ` 'Jan Kiszka' via isar-users
2024-09-02 10:02     ` Uladzimir Bely

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=20240816144333.27467-4-ubely@ilbers.de \
    --to=ubely@ilbers.de \
    --cc=isar-users@googlegroups.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox