Merge "Enable gate shell linting"
This commit is contained in:
commit
6e4ea38955
@ -50,19 +50,19 @@ kubectl_wait_for_node_ready() {
|
||||
NODE_NAME=${2}
|
||||
SEC=${3:-300}
|
||||
|
||||
log Waiting $SEC seconds for $NODE_NAME to be ready.
|
||||
log Waiting "${SEC}" seconds for "${NODE_NAME}" to be ready.
|
||||
|
||||
NODE_READY_JSONPATH='{.status.conditions[?(@.type=="Ready")].status}'
|
||||
|
||||
end=$(($(date +%s) + $SEC))
|
||||
end=$(($(date +%s) + SEC))
|
||||
while true; do
|
||||
if (kubectl_cmd "${VIA}" --request-timeout 10s get nodes $NODE_NAME -o jsonpath="${NODE_READY_JSONPATH}" | grep True) ; then
|
||||
log Node $NODE_NAME is ready.
|
||||
if (kubectl_cmd "${VIA}" --request-timeout 10s get nodes "${NODE_NAME}" -o jsonpath="${NODE_READY_JSONPATH}" | grep True) ; then
|
||||
log Node "${NODE_NAME}" is ready.
|
||||
break
|
||||
else
|
||||
now=$(date +%s)
|
||||
if [ $now -gt $end ]; then
|
||||
log Node $NODE_NAME was not ready before timeout.
|
||||
if [ "${now}" -gt "${end}" ]; then
|
||||
log Node "${NODE_NAME}" was not ready before timeout.
|
||||
fail
|
||||
fi
|
||||
echo -n .
|
||||
|
@ -12,9 +12,9 @@
|
||||
|
||||
- hosts: primary
|
||||
tasks:
|
||||
- name: Execute the make target for unit testing
|
||||
- name: Execute the make target for basic testing
|
||||
make:
|
||||
chdir: "{{ zuul.project.src_dir }}"
|
||||
target: tests-unit
|
||||
target: tests
|
||||
register: result
|
||||
failed_when: result.failed
|
Loading…
Reference in New Issue
Block a user