mirror of
https://github.com/linux-msm/bootrr.git
synced 2026-02-25 13:12:03 -08:00
Handles drivers with spaces in their names, and simplify slightly by using globbing to unwrap the bus for loop. It's necessary to add the final '*' in the "for driver in" loop in bootrr-generate-template on POSIX sh. Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org>
17 lines
290 B
Bash
Executable File
17 lines
290 B
Bash
Executable File
#!/bin/sh
|
|
|
|
. bootrr
|
|
|
|
TEST_CASE_ID="$1"
|
|
DRIVER="$2"
|
|
TIMEOUT="${4:-1}"
|
|
|
|
if [ -z "${TEST_CASE_ID}" -o -z "${DRIVER}" ]; then
|
|
echo "Usage: $0 <test-case> <driver> [<timeout>]"
|
|
exit 1
|
|
fi
|
|
|
|
timeout ${TIMEOUT} [ -d /sys/bus/*/drivers/"${DRIVER}" ] || test_report_exit fail
|
|
|
|
test_report_exit pass
|