mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-21 10:51:29 +00:00
call kube:test:clear_all during cleanup
This commit is contained in:
parent
a502b96326
commit
d4df8879f3
@ -386,8 +386,8 @@ runTests() {
|
|||||||
kubectl get "${kube_flags[@]}" -f hack/testdata/kubernetes-service.yaml
|
kubectl get "${kube_flags[@]}" -f hack/testdata/kubernetes-service.yaml
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cleanup(){
|
cleanup_tests(){
|
||||||
kube::test::clear_all
|
kube::test::clear_all
|
||||||
if [[ -n "${foundError}" ]]; then
|
if [[ -n "${foundError}" ]]; then
|
||||||
echo "FAILED TESTS: ""${foundError}"
|
echo "FAILED TESTS: ""${foundError}"
|
||||||
exit 1
|
exit 1
|
||||||
@ -399,7 +399,7 @@ runTests() {
|
|||||||
do
|
do
|
||||||
record_command run_${pkg}_tests
|
record_command run_${pkg}_tests
|
||||||
done
|
done
|
||||||
cleanup
|
cleanup_tests
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -866,5 +866,5 @@ runTests() {
|
|||||||
|
|
||||||
record_command run_wait_tests
|
record_command run_wait_tests
|
||||||
|
|
||||||
cleanup
|
cleanup_tests
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user