xds-k8s: fix a bug with ordering flags in run.sh (#26550)

Append run.sh arguments after the flagfile, so they it's possible to override flags set in the flagfile.
pull/26554/head
Sergii Tkachenko 4 years ago committed by GitHub
parent 7172b00a96
commit 49e9ef2e39
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      tools/run_tests/xds_k8s_test_driver/run.sh

@ -68,4 +68,8 @@ fi
cd "${XDS_K8S_DRIVER_DIR}"
export PYTHONPATH="${XDS_K8S_DRIVER_DIR}"
exec python "$@" --flagfile="${XDS_K8S_CONFIG}"
# Split path to python file from the rest of the args.
readonly PY_FILE="$1"
shift
# Append args after --flagfile, so they take higher priority.
exec python "${PY_FILE}" --flagfile="${XDS_K8S_CONFIG}" "$@"

Loading…
Cancel
Save