public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
From: "'Felix Moessbauer' via isar-users" <isar-users@googlegroups.com>
To: isar-users@googlegroups.com
Cc: wzh@ilbers.de, amikan@ilbers.de,
	Felix Moessbauer <felix.moessbauer@siemens.com>
Subject: [PATCH v3 2/3] testsuite: disable qemumipsel-bullseye tests in rootless mode
Date: Thu, 13 Aug 2026 08:43:20 +0200	[thread overview]
Message-ID: <20260813064321.3762064-3-felix.moessbauer@siemens.com> (raw)
In-Reply-To: <20260813064321.3762064-1-felix.moessbauer@siemens.com>

The pam + adduser combination of qemumipsel on bullseye does not work in
unprivileged user namespaces. By that, no users can be added to the
image. This results in the following error during do_rootfs_install:

 chfn: PAM: System error
 adduser: `/bin/chfn -f systemd Network Management systemd-network' returned error code 1. Exiting.
 dpkg: error processing package systemd (--configure):
  installed systemd package post-installation script subprocess returned error exit status 1

As this target and distro combination is exotic, we just remove it from
the testsuite if running in rootless mode. As the tests have inter-test
dependencies, we also have to move the testcases to later stages.

Signed-off-by: Felix Moessbauer <felix.moessbauer@siemens.com>
---
 testsuite/citest.py | 31 +++++++++++++++++++++++--------
 1 file changed, 23 insertions(+), 8 deletions(-)

diff --git a/testsuite/citest.py b/testsuite/citest.py
index 6ee61eaf..3871d45d 100644
--- a/testsuite/citest.py
+++ b/testsuite/citest.py
@@ -933,7 +933,6 @@ class NoCrossTest(CIBaseTest):
             'mc:qemui386-bullseye:isar-image-base',
             'mc:qemuamd64-buster:isar-image-ci',
             'mc:qemuamd64-bullseye:isar-initramfs',
-            'mc:qemumipsel-bullseye:isar-image-base',
             'mc:phyboard-mira-bullseye:isar-image-base',
             'mc:hikey-bullseye:isar-image-base',
             'mc:virtualbox-bullseye:isar-image-base',
@@ -1121,13 +1120,6 @@ class NoCrossTest(CIBaseTest):
         self.init()
         self.vm_start('i386', 'bookworm')
 
-    def test_run_mipsel_bullseye(self):
-        """
-        :avocado: tags=startvm
-        """
-        self.init()
-        self.vm_start('mipsel', 'bullseye')
-
     def test_run_mipsel_bookworm_base(self):
         """
         :avocado: tags=startvm
@@ -1233,6 +1225,29 @@ class NoCrossTest(CIBaseTest):
         self.vm_start('amd64-iso', 'bookworm', image='isar-image-ci',
                       script='test_system_running.sh 30')
 
+    def test_nocross_mipsel_bullseye(self):
+        """
+        On bullseye mipsel, the pam + adduser combination does not
+        work in unprivileged namespaces.
+        """
+        if bool(int(self.params.get('rootless', default=0))):
+            self.cancel('mipsel bullseye not supported in rootless mode')
+
+        self.init()
+        self.perform_build_test(
+            ['mc:qemumipsel-bullseye:isar-image-base'],
+            cross=False)
+
+    def test_run_mipsel_bullseye(self):
+        """
+        :avocado: tags=startvm
+        """
+        if bool(int(self.params.get('rootless', default=0))):
+            self.cancel('mipsel bullseye not supported in rootless mode')
+
+        self.init()
+        self.vm_start('mipsel', 'bullseye')
+
     def test_nocross_debsrc(self):
         targets = [
             'mc:qemuarm-bookworm:isar-image-ci',
-- 
2.55.0

-- 
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 visit https://groups.google.com/d/msgid/isar-users/20260813064321.3762064-3-felix.moessbauer%40siemens.com.

  parent reply	other threads:[~2026-08-13  6:43 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-13  6:43 [PATCH v3 0/3] Various improvements of the Isar testsuite 'Felix Moessbauer' via isar-users
2026-08-13  6:43 ` [PATCH v3 1/3] testsuite: compress sdk with zstd to speedup dev test 'Felix Moessbauer' via isar-users
2026-08-13  6:43 ` 'Felix Moessbauer' via isar-users [this message]
2026-08-13  6:43 ` [PATCH v3 3/3] testsuite: only build no-cross test class without cross 'Felix Moessbauer' via isar-users
2026-08-14 14:51 ` [PATCH v3 0/3] Various improvements of the Isar testsuite Zhihang Wei

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=20260813064321.3762064-3-felix.moessbauer@siemens.com \
    --to=isar-users@googlegroups.com \
    --cc=amikan@ilbers.de \
    --cc=felix.moessbauer@siemens.com \
    --cc=wzh@ilbers.de \
    /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