Workaround race condition in test
by probbing if the repository is already available via HTTP
This commit is contained in:
parent
60e55b5ed3
commit
603c44061c
1 changed files with 7 additions and 0 deletions
|
|
@ -100,6 +100,13 @@ EOF
|
|||
go run "${websrvfile}" &
|
||||
kill_pids+=("$!")
|
||||
|
||||
COUNTER=0
|
||||
# make sure the repository is already accessible
|
||||
while [[ "$(curl -k -s -o /dev/null -w '%{http_code}' https://localhost:${websrvport}/repodata/repomd.xml)" != "200" && $COUNTER -lt 10 ]]; do
|
||||
greenprint "$COUNTER - Not ready yet ....."
|
||||
(( COUNTER=COUNTER+1 ))
|
||||
sleep 60
|
||||
done
|
||||
|
||||
greenprint "Creating source file and blueprint"
|
||||
composedir=$(mktemp -d)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue