Skip to content
This repository was archived by the owner on Jun 28, 2024. It is now read-only.

Commit 467b52d

Browse files
committed
ci/openshift-ci: Avoid preliminary failure on non-zero return
we still want to post-process the pods on failure, let's ignore the failure by treating the test_status on non-zero return. Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
1 parent 3dada74 commit 467b52d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.ci/openshift-ci/run_smoke_test.sh

+3-2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
script_dir=$(dirname $0)
1111
source ${script_dir}/../lib.sh
1212

13+
test_status=1
14+
1315
pod='http-server'
1416

1517
# Create a pod.
@@ -60,8 +62,7 @@ info "Wait for the HTTP server to respond"
6062
rm -f hello_msg.txt
6163
waitForProcess 60 1 "curl '${host}:${port}${hello_file}' -s -o hello_msg.txt"
6264

63-
grep "${hello_msg}" hello_msg.txt > /dev/null
64-
test_status=$?
65+
grep "${hello_msg}" hello_msg.txt > /dev/null && test_status=0
6566
if [ $test_status -eq 0 ]; then
6667
info "HTTP server is working"
6768
else

0 commit comments

Comments
 (0)