Skip to content

Commit 6880ab6

Browse files
committed
fix physical restore log collection in tests
1 parent 49a6a45 commit 6880ab6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

e2e-tests/functions

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ get_mongod_pods() {
355355
kubectl_bin get pod \
356356
--no-headers \
357357
-l app.kubernetes.io/instance=${cluster} \
358-
-l app.kubernetes.io/component=mongod
358+
-l app.kubernetes.io/component=mongod | awk '{print $1}'
359359

360360
}
361361

@@ -365,7 +365,7 @@ collect_physical_restore_logs() {
365365

366366
for pod in $(get_mongod_pods ${cluster}); do
367367
desc "pbm-agent logs from ${pod}"
368-
kubectl_bin exec -it ${pod} -- cat /tmp/pbm-agent.log || true
368+
kubectl_bin exec ${pod} -- cat /tmp/pbm-agent.log || echo "failed to get /tmp/pbm-agent.log from ${pod}"
369369
done
370370
}
371371

0 commit comments

Comments
 (0)