mirror of
https://github.com/linux-msm/bootrr.git
synced 2026-02-25 13:12:03 -08:00
There is no need to have timeout as a function in the bootrr file. Move it to a separate helper file as we have for the rest of helpers. Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
14 lines
261 B
Bash
14 lines
261 B
Bash
#!/bin/sh
|
|
|
|
test_report_exit() {
|
|
TEST_RESULT=$1
|
|
command -v lava-test-case
|
|
if [ "$?" -eq 0 ]; then
|
|
lava-test-case ${TEST_CASE_ID} --result ${TEST_RESULT}
|
|
else
|
|
echo "<LAVA_SIGNAL_TESTCASE TEST_CASE_ID=${TEST_CASE_ID} RESULT=${TEST_RESULT}>"
|
|
fi
|
|
exit 0
|
|
}
|
|
|