diff --git a/e2e-tests/functions b/e2e-tests/functions index 7fd9662e54..0277297b4b 100644 --- a/e2e-tests/functions +++ b/e2e-tests/functions @@ -521,7 +521,7 @@ get_backup_name_by_job() { check_jobs_and_pgbackups() { local cluster=$1 - mapfile -t job_names < <(kubectl get job -n "$NAMESPACE" -o jsonpath='{range .items[*]}{.metadata.name}{"\n"}{end}') + readarray -t job_names <<< "$(kubectl get job -n "$NAMESPACE" -o jsonpath='{range .items[*]}{.metadata.name}{"\n"}{end}')" for ((i = 0; i < ${#job_names[@]}; i++)); do job_name=${job_names[$i]}