File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 22
33set -euo pipefail
44
5+ countTestJobs () {
6+ kubectl get job.batch -o name -l project=container-debug-support,type=integration-test \
7+ | wc -l
8+ }
9+
510echo " >> Building test images [$( date) ]"
611skaffold build -p integration
712
@@ -12,8 +17,9 @@ skaffoldPid=$!
1217trap " echo '>> Tearing down test jobs [$( date) ]'; kill $skaffoldPid ; skaffold delete -p integration" 0 1 3 15
1318
1419echo " >> Waiting for test jobs to start [$( date) ]"
15- # 5 tests = go 1.13 1.14 1.15 1.16 + nodejs 12
16- while [ $( kubectl get job.batch -o name | wc -l) -lt 5 ]; do
20+ jobcount=0
21+ while [ $jobcount -eq 0 -o $jobcount -ne $( countTestJobs) ]; do
22+ jobcount=$( countTestJobs)
1723 sleep 5
1824done
1925echo " >> Monitoring for test job completion [$( date) ]"
You can’t perform that action at this time.
0 commit comments