tests: Use --http0.9 for curl ssh test

Cherry-picked from a0ae10c2d7

Related: rhbz#1769525
This commit is contained in:
Brian C. Lane 2019-10-30 16:27:29 -07:00 committed by Alexander Todorov
parent f87db8844f
commit 020fd300a4

View File

@ -32,7 +32,7 @@ boot_image() {
-serial chardev:log0 &"
# wait for ssh to become ready (yes, http is the wrong protocol, but it returns the header)
tries=0
until curl -sS -m 15 "http://localhost:$SSH_PORT/" | grep 'OpenSSH'; do
until curl --http0.9 -sS -m 15 "http://localhost:$SSH_PORT/" | grep 'OpenSSH'; do
tries=$((tries + 1))
if [ $tries -gt $TIMEOUT ]; then
exit 1