mirror of https://github.com/k3s-io/k3s
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>pull/564/head
parent
0ac65cdb85
commit
4c34895e0a
|
@ -93,12 +93,6 @@ checkEtcdOnPath
|
|||
# Run cleanup to stop etcd on interrupt or other kill signal.
|
||||
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
|
||||
IFS=';' read -a apiVersions <<< "${KUBE_TEST_API_VERSIONS}"
|
||||
for apiVersion in "${apiVersions[@]}"; do
|
||||
|
|
Loading…
Reference in New Issue