mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-10-22 20:38:28 +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 parent
8fb8a8d4e1
commit
cfe0f858c2
1 file changed
+4
@@ -1,6 +1,10 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
for case in `find tests -type f -name '*.sh'`; do
|
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
|
bash $case python3 >$case.output 2>&1
|
||||||
ret=$?
|
ret=$?
|
||||||
if [ $ret -ne 0 ]; then
|
if [ $ret -ne 0 ]; then
|
||||||
|
|||||||
Reference in new issue
Block a user