Mac test utility (#986)
A utility for running individual or all tests on a Mac dev machine without changing the test script.
This commit is contained in:
@@ -9,10 +9,12 @@ id=""
|
||||
ROOT=$(dirname $0)/../..
|
||||
|
||||
final_cleanup() {
|
||||
rm -rf testDir1 || true
|
||||
rm -rf testDir1/ || true
|
||||
kubectl delete ns "ns1-$id" "ns2-$id" &
|
||||
}
|
||||
|
||||
trap final_cleanup EXIT
|
||||
|
||||
cleanup() {
|
||||
[[ -n "${1+x}" && -n "${2+x}" ]]; fission env delete --name $1 --envns $2 || true
|
||||
[[ -n "${3+x}" && -n "${4+x}" ]]; fission fn delete --name $3 --fns $4 || true
|
||||
|
||||
Reference in New Issue
Block a user