mirror of
https://github.com/linux-msm/bootrr.git
synced 2026-02-25 13:12:03 -08:00
helpers: assert_{mmc,partition} use test_report_exit
Signed-off-by: Aníbal Limón <anibal.limon@linaro.org>
This commit is contained in:
committed by
Bjorn Andersson
parent
866d779bca
commit
efe5691ee5
@@ -1,5 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
. bootrr
|
||||
|
||||
TEST_CASE_ID="$1"
|
||||
DEVICE="$2"
|
||||
|
||||
@@ -9,9 +11,7 @@ if [ -z "${TEST_CASE_ID}" -o -z "${DEVICE}" ]; then
|
||||
fi
|
||||
|
||||
if [ -L /sys/bus/mmc/devices/${DEVICE} ]; then
|
||||
TEST_RESULT="pass"
|
||||
else
|
||||
TEST_RESULT="fail"
|
||||
test_report_exit pass
|
||||
fi
|
||||
|
||||
lava-test-case "${TEST_CASE_ID}" --result ${TEST_RESULT}
|
||||
test_report_exit fail
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
. bootrr
|
||||
|
||||
TEST_CASE_ID="$1"
|
||||
PARTITION="$2"
|
||||
|
||||
@@ -9,9 +11,7 @@ if [ -z "${TEST_CASE_ID}" -o -z "${PARTITION}" ]; then
|
||||
fi
|
||||
|
||||
if [ -L /dev/disk/by-partlabel/${PARTITION} ]; then
|
||||
TEST_RESULT="pass"
|
||||
else
|
||||
TEST_RESULT="fail"
|
||||
test_report_exit pass
|
||||
fi
|
||||
|
||||
lava-test-case "${TEST_CASE_ID}" --result ${TEST_RESULT}
|
||||
test_report_exit fail
|
||||
|
||||
Reference in New Issue
Block a user