[v2,2/3] testsuite: disable qemumipsel-bullseye tests in rootless mode

Message ID 20260810090125.654670-3-felix.moessbauer@siemens.com
State Under Review
Headers show
Series Various improvements of the Isar testsuite | expand

Commit Message

Felix Moessbauer Aug. 10, 2026, 9:01 a.m. UTC
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.

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

Patch

diff --git a/testsuite/citest.py b/testsuite/citest.py
index a41b77c8..2841dbdc 100644
--- a/testsuite/citest.py
+++ b/testsuite/citest.py
@@ -928,7 +928,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',
@@ -962,6 +961,19 @@  class NoCrossTest(CIBaseTest):
         self.init()
         self.perform_build_test(targets, cross=False)
 
+    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_arm_bullseye(self):
         """
         :avocado: tags=startvm
@@ -1120,6 +1132,9 @@  class NoCrossTest(CIBaseTest):
         """
         :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')