From 8db9a55c022de20ca483e467051e4b82587b7d23 Mon Sep 17 00:00:00 2001 From: Nicolas Dechesne Date: Wed, 13 Jun 2018 17:09:43 +0200 Subject: [PATCH] bootrr: emulate lava-test-case command In case lava-test-command is not available, emulate what it is supposed to do. This is a convenient hack to make it easier to run bootrr locally for debug/testing purpose. Signed-off-by: Nicolas Dechesne --- helpers/bootrr | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/helpers/bootrr b/helpers/bootrr index 20975c4..eea482e 100644 --- a/helpers/bootrr +++ b/helpers/bootrr @@ -15,7 +15,12 @@ timeout() { test_report_exit() { TEST_RESULT=$1 - lava-test-case ${TEST_CASE_ID} --result ${TEST_RESULT} + command -v lava-test-case + if [ "$?" -eq 0 ]; then + lava-test-case ${TEST_CASE_ID} --result ${TEST_RESULT} + else + echo "" + fi exit 0 }