test: print return value for intermittent failure

The canary tests sometimes have an intermittent failure
when processing the return value of a grep for the osds
to be running. Print some debug info to help track it
down.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit 4c5163f843)
This commit is contained in:
Travis Nielsen authored and Mergify committed 2023-02-23 16:51:01 +00:00
1 parent 3c85347ea5
commit e75d845014
1 file changed
+4 -1
+4 -1
View File
@@ -55,7 +55,10 @@ function test_demo_mgr {
function test_demo_osd {
# shellcheck disable=SC2046
return $(wait_for_daemon "$EXEC_COMMAND -s | grep -sq \"$OSD_COUNT osds: $OSD_COUNT up.*, $OSD_COUNT in.*\"")
ret_val=$(wait_for_daemon "$EXEC_COMMAND -s | grep -sq \"$OSD_COUNT osds: $OSD_COUNT up.*, $OSD_COUNT in.*\"")
# debug info for an intermittent failure
echo "Return value = $ret_val"
return $ret_val
}
function test_demo_rgw {