From cfe0f858c2caa1535a2c3244fc6c2fe8e2a8bcf1 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Sun, 16 Aug 2026 08:52:12 +0200 Subject: [PATCH] python3-pydbus: skip ptest cases gracefully when dbus-launch is missing Guard each shell test case with a dbus-launch availability check and emit SKIP instead of hard-failing when it isn't installed. AI-Generated: Uses Claude Code Signed-off-by: Khem Raj --- meta-python/recipes-devtools/python/python3-pydbus/run-ptest | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/meta-python/recipes-devtools/python/python3-pydbus/run-ptest b/meta-python/recipes-devtools/python/python3-pydbus/run-ptest index 782ceed3bb..51e5a958da 100644 --- a/meta-python/recipes-devtools/python/python3-pydbus/run-ptest +++ b/meta-python/recipes-devtools/python/python3-pydbus/run-ptest @@ -1,6 +1,10 @@ #!/bin/sh for case in `find tests -type f -name '*.sh'`; do + if ! command -v dbus-launch >/dev/null 2>&1; then + echo "SKIP: ${case} (dbus-launch not installed)" + continue + fi bash $case python3 >$case.output 2>&1 ret=$? if [ $ret -ne 0 ]; then