From d4df8879f31dc4e021446296bb471f1b253c153a Mon Sep 17 00:00:00 2001 From: Thomas Runyon Date: Fri, 22 Feb 2019 21:23:53 -0500 Subject: [PATCH] call kube:test:clear_all during cleanup --- test/cmd/legacy-script.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/cmd/legacy-script.sh b/test/cmd/legacy-script.sh index f58584e6b7..bf3e871bef 100755 --- a/test/cmd/legacy-script.sh +++ b/test/cmd/legacy-script.sh @@ -386,8 +386,8 @@ runTests() { kubectl get "${kube_flags[@]}" -f hack/testdata/kubernetes-service.yaml fi - cleanup(){ - kube::test::clear_all + cleanup_tests(){ + kube::test::clear_all if [[ -n "${foundError}" ]]; then echo "FAILED TESTS: ""${foundError}" exit 1 @@ -399,7 +399,7 @@ runTests() { do record_command run_${pkg}_tests done - cleanup + cleanup_tests return fi @@ -866,5 +866,5 @@ runTests() { record_command run_wait_tests - cleanup + cleanup_tests }