File tree Expand file tree Collapse file tree 2 files changed +18
-5
lines changed Expand file tree Collapse file tree 2 files changed +18
-5
lines changed Original file line number Diff line number Diff line change @@ -48,8 +48,14 @@ run "docker run -d --rm --platform ${ARCH} \
4848run " sleep 20" # Startup-time is longer on cross-platform
4949run " docker ps"
5050run " docker logs ${RAND_NAME} "
51- run " curl -sS localhost/index.html"
52- run " curl -sS localhost/index.html | grep 'hello world'"
51+ if ! run " curl -sS localhost/index.html" ; then
52+ run " docker stop ${RAND_NAME} "
53+ exit 1
54+ fi
55+ if ! run " curl -sS localhost/index.html | grep 'hello world'" ; then
56+ run " docker stop ${RAND_NAME} "
57+ exit 1
58+ fi
5359
5460
5561# ##
Original file line number Diff line number Diff line change @@ -59,9 +59,16 @@ run "sleep 20" # Startup-time is longer on cross-platform
5959run " docker ps"
6060run " docker logs ${RAND_NAME1} "
6161run " docker logs ${RAND_NAME2} "
62- run " curl localhost"
63- run " curl localhost | grep 'hello world php'"
64-
62+ if ! run " curl localhost" ; then
63+ run " docker stop ${RAND_NAME1} "
64+ run " docker stop ${RAND_NAME2} "
65+ exit 1
66+ fi
67+ if ! run " curl localhost | grep 'hello world php'" ; then
68+ run " docker stop ${RAND_NAME1} "
69+ run " docker stop ${RAND_NAME2} "
70+ exit 1
71+ fi
6572
6673# ##
6774# ## Cleanup
You can’t perform that action at this time.
0 commit comments