From 76a2fde625a858f3cac2b544d413f8473ae3a595 Mon Sep 17 00:00:00 2001 From: Bjorn Andersson Date: Sat, 20 Apr 2024 20:36:24 -0700 Subject: [PATCH] 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 --- helpers/bootrr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helpers/bootrr b/helpers/bootrr index f5aad59..b887225 100644 --- a/helpers/bootrr +++ b/helpers/bootrr @@ -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