Files
bootrr/helpers/bootrr
Dmitry Baryshkov dad8a13e9e helpers/bootrr: move timeout to separate helper
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>
2021-11-01 11:48:12 -05:00

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
}