mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-09-02 04:20:18 +00:00
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>
19 lines
475 B
Bash
19 lines
475 B
Bash
#!/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
|
|
cat $case.output
|
|
echo "FAIL: ${case}"
|
|
elif grep -i 'SKIP' $case.output; then
|
|
echo "SKIP: ${case}"
|
|
else
|
|
echo "PASS: ${case}"
|
|
fi
|
|
rm -f $case.output
|
|
done |