Debian Codegraph @

test/wait-for-hawkbit-online

raw symbols SCIP
1 #!/bin/bashscip-shell filesystem . . `/bin/bash`.
2 #
3 # Loops with 5 second intervals to Wait for hawkbit server to be ready to
4 # accept connections.
5 # This should be run once before continuing with tests and scripts that
6 # interact with hawkbit.
7
8 printfscip-shell system . . printf. "Waiting for hawkbit to come up "
9 cycles=0
10 until $(curlscip-shell system . . curl. --output /dev/nullscip-shell filesystem . . `/dev/null`. --silent --head --fail http://localhost:8080); do
11 printfscip-shell system . . printf. '.'
12 [scip-shell system . . `[`. $((cycles++)) -gt 10 ] && printfscip-shell system . . printf. " failed\n" && exit 1
13 sleepscip-shell system . . sleep. 5
14 done
15
16 printfscip-shell system . . printf. '\n'