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:
Vishal
2019-01-20 16:51:45 +05:30
committed by GitHub
parent e4746007da
commit 3c4fdb0659
15 changed files with 148 additions and 14 deletions
+3 -1
View File
@@ -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