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 2
2
3
3
set -euo pipefail
4
4
5
+ countTestJobs () {
6
+ kubectl get job.batch -o name -l project=container-debug-support,type=integration-test \
7
+ | wc -l
8
+ }
9
+
5
10
echo " >> Building test images [$( date) ]"
6
11
skaffold build -p integration
7
12
@@ -12,8 +17,9 @@ skaffoldPid=$!
12
17
trap " echo '>> Tearing down test jobs [$( date) ]'; kill $skaffoldPid ; skaffold delete -p integration" 0 1 3 15
13
18
14
19
echo " >> 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)
17
23
sleep 5
18
24
done
19
25
echo " >> Monitoring for test job completion [$( date) ]"
You can’t perform that action at this time.
0 commit comments