move clean_up to trap

This commit is contained in:
Sergey Dudoladov
2019-05-31 17:27:59 +02:00
parent bc05589712
commit 711598956a
+3 -1
View File
@@ -46,10 +46,12 @@ function clean_up(){
}
function main(){
trap "clean_up" QUIT TERM EXIT
start_kind
set_kind_api_server_ip
run_tests
clean_up
exit 0
}