diff mbox series

[v2] ptest-packagelists: Skip dbus ptest when dbus-broker is the dbus provider

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

Commit Message

Khem Raj Oct. 10, 2026, 4:05 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

Remove dbus from PTESTS_SLOW when dbus-broker is not the dbus provider.

Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
---
v2: Use remove instead of append to avoid missing-ptest QA warning

 meta/conf/distro/include/ptest-packagelists.inc | 4 ++++
 1 file changed, 4 insertions(+)
diff mbox series

Patch

diff --git a/meta/conf/distro/include/ptest-packagelists.inc b/meta/conf/distro/include/ptest-packagelists.inc
index e8c9c18f92..22a2e3c3ad 100644
--- a/meta/conf/distro/include/ptest-packagelists.inc
+++ b/meta/conf/distro/include/ptest-packagelists.inc
@@ -180,6 +180,10 @@  PTESTS_SLOW:remove:libc-musl:qemux86-64 = "perl gnutls"
 PTESTS_FAST:remove:libc-musl:qemux86-64 = "libarchive"
 PTESTS_PROBLEMS:append:libc-musl:qemux86-64 = " perl gnutls libarchive"

+# dbus conflicts with dbus-broker
+PTESTS_SLOW:remove = "${@'dbus' if d.getVar('VIRTUAL-RUNTIME_dbus') == 'dbus-broker' else ''}"
+PTESTS_PROBLEMS:append = "${@' dbus' if d.getVar('VIRTUAL-RUNTIME_dbus') == 'dbus-broker' else ''}"
+
 #    ruby \ # Timeout
 #    rt-tests \ # Needs to be checked whether it runs at all
 #    bash \ # Test outcomes are non-deterministic by design