helpers/bootrr: Silence the lava-test-case test

`command -v` is invoked to check if lava-test-case exists, to know if we
need to fake it using `echo`. But in the event that lava-test-case
actually exist it also prints the full path of the executable.

Pipe the output to /dev/null, as we only care about the exit code.

Signed-off-by: Bjorn Andersson <quic_bjorande@quicinc.com>
This commit is contained in:
Bjorn Andersson
2024-04-20 20:36:24 -07:00
parent 48ac2b00f7
commit 76a2fde625

View File

@@ -2,7 +2,7 @@
test_report_exit() {
TEST_RESULT=$1
command -v lava-test-case
command -v lava-test-case > /dev/null
if [ "$?" -eq 0 ]; then
lava-test-case "${TEST_CASE_ID}" --result ${TEST_RESULT}
else