mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-09-21 10:40:24 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user