diff --git a/.ci/openshift-ci/run_smoke_test.sh b/.ci/openshift-ci/run_smoke_test.sh index df205eb0a..329c3df80 100755 --- a/.ci/openshift-ci/run_smoke_test.sh +++ b/.ci/openshift-ci/run_smoke_test.sh @@ -57,14 +57,12 @@ else fi info "Wait for the HTTP server to respond" -rm -f hello_msg.txt -waitForProcess 60 1 "curl '${host}:${port}${hello_file}' -s -o hello_msg.txt" - -grep "${hello_msg}" hello_msg.txt > /dev/null -test_status=$? -if [ $test_status -eq 0 ]; then +check_cmd="curl -vvv '${host}:${port}${hello_file}' 2>&1 | grep -q '$hello_msg'" +if waitForProcess 60 1 "${check_cmd}"; then + test_status=0 info "HTTP server is working" else + test_status=1 info "HTTP server is unreachable" fi