diff mbox series

ptest-packagelists: Skip dbus ptest when dbus-broker is the dbus provider

Message ID 20261010132107.2159495-1-khem.raj@oss.qualcomm.com
State New
Headers show
Series ptest-packagelists: Skip dbus ptest when dbus-broker is the dbus provider | expand

Commit Message

Khem Raj Oct. 10, 2026, 1:21 p.m. UTC
When a distro sets VIRTUAL-RUNTIME_dbus = "dbus-broker", systemd
RDEPENDS on dbus-broker, which RCONFLICTS with dbus. dbus-ptest
RDEPENDS on dbus, so core-image-ptest-dbus fails in do_rootfs:

  package systemd requires dbus-broker, but none of the providers can be installed
  package dbus-broker conflicts with dbus provided by dbus-1
  package dbus-ptest requires dbus, but none of the providers can be installed

Only add dbus to PTESTS_SLOW when dbus-broker is not the dbus provider.

Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
---
 meta/conf/distro/include/ptest-packagelists.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/meta/conf/distro/include/ptest-packagelists.inc b/meta/conf/distro/include/ptest-packagelists.inc
index e8c9c18f92..1f00a67f99 100644
--- a/meta/conf/distro/include/ptest-packagelists.inc
+++ b/meta/conf/distro/include/ptest-packagelists.inc
@@ -122,7 +122,7 @@  PTESTS_SLOW = "\
     bzip2 \
     coreutils \
     curl \
-    dbus \
+    ${@'' if d.getVar('VIRTUAL-RUNTIME_dbus') == 'dbus-broker' else 'dbus'} \
     dosfstools \
     dpkg \
     e2fsprogs \