Enable gate shell linting

This enables linting the various supporting shell scripts for the gate
during the unit test job.

Change-Id: I95dc098a602b2ae6807165d3d08c1cb57ba0c702
This commit is contained in:
Mark Burnett 2018-08-27 13:26:23 -05:00
parent be5689cf61
commit ee10b894bf
2 changed files with 8 additions and 8 deletions

View File

@ -50,19 +50,19 @@ kubectl_wait_for_node_ready() {
NODE_NAME=${2} NODE_NAME=${2}
SEC=${3:-300} 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}' NODE_READY_JSONPATH='{.status.conditions[?(@.type=="Ready")].status}'
end=$(($(date +%s) + $SEC)) end=$(($(date +%s) + SEC))
while true; do while true; do
if (kubectl_cmd "${VIA}" --request-timeout 10s get nodes $NODE_NAME -o jsonpath="${NODE_READY_JSONPATH}" | grep True) ; then 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. log Node "${NODE_NAME}" is ready.
break break
else else
now=$(date +%s) now=$(date +%s)
if [ $now -gt $end ]; then if [ "${now}" -gt "${end}" ]; then
log Node $NODE_NAME was not ready before timeout. log Node "${NODE_NAME}" was not ready before timeout.
fail fail
fi fi
echo -n . echo -n .

View File

@ -12,9 +12,9 @@
- hosts: primary - hosts: primary
tasks: tasks:
- name: Execute the make target for unit testing - name: Execute the make target for basic testing
make: make:
chdir: "{{ zuul.project.src_dir }}" chdir: "{{ zuul.project.src_dir }}"
target: tests-unit target: tests
register: result register: result
failed_when: result.failed failed_when: result.failed