@@ -42,6 +42,7 @@ SCRIPTPATH="$( cd "$(dirname "$0")" > /dev/null 2>&1 ; pwd -P )"
42
42
SOURCEPATH=" ` echo $SCRIPTPATH | sed ' s/weblogic-kubernetes-operator.*/weblogic-kubernetes-operator/' ` "
43
43
traceFile=${SOURCEPATH} /operator/src/main/resources/scripts/traceUtils.sh
44
44
source ${traceFile}
45
+ source ${SCRIPTPATH} /util_dots.sh
45
46
[ $? -ne 0 ] && echo " Error: missing file ${traceFile} " && exit 1
46
47
47
48
# Set TRACE_INCLUDE_FILE to true to cause tracing to include filename & line number.
@@ -172,11 +173,15 @@ function cleanup() {
172
173
# 2 - delete contents of k8s weblogic domain PV/PVC
173
174
# (if CREATE_DOMAIN has been set to "true")
174
175
176
+ tracen " Info: Waiting for cleanup.sh to complete."
177
+ printdots_start
175
178
DELETE_FILES=${CREATE_DOMAIN:- false} \
176
179
${SOURCEPATH} /src/integration-tests/bash/cleanup.sh 2>&1 > \
177
180
${test_home} /cleanup.out
181
+ status=$?
182
+ printdots_end
178
183
179
- if [ $? -ne 0 ]; then
184
+ if [ $status -ne 0 ]; then
180
185
trace " Error: cleanup failed. Cleanup output:"
181
186
cat ${test_home} /cleanup.out
182
187
exit 1
@@ -210,15 +215,20 @@ function runJob() {
210
215
211
216
# Run the job
212
217
218
+ tracen " Info: Waiting for job to complete."
219
+ printdots_start
213
220
env \
214
221
KUBECONFIG=$KUBECONFIG \
215
222
JOB_YAML=${test_home} /${yaml_file} \
216
223
JOB_NAME=${job_name} \
217
224
NAMESPACE=$NAMESPACE \
218
225
${SCRIPTPATH} /util_job.sh \
219
226
2>&1 > ${test_home} /job-${1} .out
227
+ local status=$?
228
+ printdots_end
220
229
221
- if [ ! $? -eq 0 ]; then
230
+ if [ ! $status -eq 0 ]; then
231
+ printdots_end
222
232
trace " Error: job failed, job contents"
223
233
cat ${test_home} /job-${1} .out
224
234
trace " Error: end of failed job contents"
@@ -513,7 +523,7 @@ function deployPod() {
513
523
sleep 1
514
524
status=` kubectl get pods -n $NAMESPACE 2>&1 | egrep $pod_name | awk ' {print $2}' `
515
525
done
516
- echo
526
+ echo " ( $(( SECONDS - startsecs )) seconds) "
517
527
}
518
528
519
529
function deploySinglePodService() {
@@ -606,12 +616,16 @@ deploySinglePodService ${MANAGED_SERVER_NAME_BASE?}1 ${MANAGED_SERVER_PORT?} 308
606
616
trace " Info: Checking beans to see if sit-cfg took effect. Input file 'checkBeans.input', output file '$test_home /checkBeans.out'."
607
617
kubectl cp checkBeans.input domain1-admin-server:/shared/checkBeans.input || exit 1
608
618
kubectl cp checkBeans.py domain1-admin-server:/shared/checkBeans.py || exit 1
619
+ tracen " Info: Waiting for WLST checkBeans.py to complete."
620
+ printdots_start
609
621
kubectl exec -it domain1-admin-server \
610
622
wlst.sh /shared/checkBeans.py \
611
623
weblogic welcome1 t3://domain1-admin-server:7001 \
612
624
/shared/checkBeans.input \
613
625
> $test_home /checkBeans.out 2>&1
614
- if [ $? -ne 0 ]; then
626
+ status=$?
627
+ printdots_end
628
+ if [ $status -ne 0 ]; then
615
629
trace " Error: checkBeans failed, see '$test_home /checkBeans.out'."
616
630
exit 1
617
631
fi
0 commit comments