helpers: assert_{mmc,partition} use test_report_exit

Signed-off-by: Aníbal Limón <anibal.limon@linaro.org>
This commit is contained in:
Aníbal Limón
2021-01-20 16:10:17 -06:00
committed by Bjorn Andersson
parent 866d779bca
commit efe5691ee5
2 changed files with 8 additions and 8 deletions

View File

@@ -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

View File

@@ -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