Skip to content

Commit cd83dc1

Browse files
author
Tom Barnes
committed
Tweak test output.
1 parent baf4ea9 commit cd83dc1

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

src/integration-tests/introspector/introspectTest.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ function runJob() {
215215

216216
# Run the job
217217

218-
tracen "Info: Waiting for job to complete."
218+
tracen "Info: Waiting for job '$job_name' to complete."
219219
printdots_start
220220
env \
221221
KUBECONFIG=$KUBECONFIG \
@@ -509,7 +509,7 @@ function deployPod() {
509509
local status="0/1"
510510
local startsecs=$SECONDS
511511
local maxsecs=180
512-
tracen "Info: Waiting up to $maxsecs seconds for pod readiness"
512+
tracen "Info: Waiting up to $maxsecs seconds for pod '$pod_name' readiness"
513513
while [ "${status}" != "1/1" ] ; do
514514
if [ $((SECONDS - startsecs)) -gt $maxsecs ]; then
515515
echo

src/integration-tests/introspector/util_dots.sh

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,16 +31,14 @@
3131
#
3232

3333
printdots_inner() {
34-
local start_pids=""
34+
local start_pids="`ps $PPID 2>&1`"
3535
local dotsfile=$1
3636
local begin_sec=$SECONDS
3737
[ -f "$dotsfile" ] || return
3838
while [ 1 -eq 1 ]; do
39-
[ "$start_pids" = "" ] && start_pids="`ps -o ppid=`"
4039
sleep ${2:-1}
41-
4240
# if parent pids changed, then our parent died and we should exit
43-
local end_pids="`ps -o ppid=`"
41+
local end_pids="`ps $PPID 2>&1`"
4442
[ "$start_pids" = "$end_pids" ] || break
4543

4644
# if too much time has passed, then exit

0 commit comments

Comments
 (0)