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 <raj.khem@gmail.com>
This commit is contained in:
Khem Raj authored and Khem Raj committed 2026-08-29 10:41:48 -07:00
1 parent fe8409f669
commit 559af648a6
1 file changed
+4
@@ -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