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
2026-08-29 21:43:04 -07:00
committed by Khem Raj
parent 8fb8a8d4e1
commit cfe0f858c2
@@ -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