mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-04 09:49:50 +00:00
int tests: stop special casing KUBE_TEST_ARGS
Stop special casing KUBE_TEST_ARGS and limiting the API group/version settings to "v1" when running the tests. This was helpful in the past when we used to test multiple values for KUBE_TEST_API_VERSIONS - if you were specifying KUBE_TEST_ARGS to run a single test case, you probably didn't want to have it tested for multiple values of KUBE_TEST_API_VERSIONS. Now, however, KUBE_TEST_API_VERSIONS comes from KUBE_AVAILABLE_GROUP_VERSIONS by default, which is a single list instead of multiple, so we shouldn't need to special case KUBE_TEST_ARGS any more. This is especially necessary because certain tests that are using testapi break if KUBE_TEST_API_VERSIONS is just "v1". Signed-off-by: Andy Goldstein <goldsteina@vmware.com>
This commit is contained in:
parent
0ac65cdb85
commit
4c34895e0a
@ -93,12 +93,6 @@ checkEtcdOnPath
|
|||||||
# Run cleanup to stop etcd on interrupt or other kill signal.
|
# Run cleanup to stop etcd on interrupt or other kill signal.
|
||||||
trap cleanup EXIT
|
trap cleanup EXIT
|
||||||
|
|
||||||
# If a test case is specified, just run once with v1 API version and exit
|
|
||||||
if [[ -n "${KUBE_TEST_ARGS}" ]]; then
|
|
||||||
runTests v1
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Convert the CSV to an array of API versions to test
|
# Convert the CSV to an array of API versions to test
|
||||||
IFS=';' read -a apiVersions <<< "${KUBE_TEST_API_VERSIONS}"
|
IFS=';' read -a apiVersions <<< "${KUBE_TEST_API_VERSIONS}"
|
||||||
for apiVersion in "${apiVersions[@]}"; do
|
for apiVersion in "${apiVersions[@]}"; do
|
||||||
|
Loading…
Reference in New Issue
Block a user