fix shellcheck in pkg/kubectl/cmd/edit/testdata/record_testcase.sh

pull/564/head
danielqsj 2019-02-11 16:50:19 +08:00
parent 0e78dd2d17
commit 998147de59
2 changed files with 2 additions and 3 deletions

View File

@ -119,7 +119,6 @@
./hack/verify-test-images.sh ./hack/verify-test-images.sh
./hack/verify-test-owners.sh ./hack/verify-test-owners.sh
./hack/verify-typecheck.sh ./hack/verify-typecheck.sh
./pkg/kubectl/cmd/edit/testdata/record_testcase.sh
./test/cmd/apply.sh ./test/cmd/apply.sh
./test/cmd/apps.sh ./test/cmd/apps.sh
./test/cmd/authorization.sh ./test/cmd/authorization.sh

View File

@ -25,7 +25,7 @@ fi
# Clean up the test server # Clean up the test server
function cleanup { function cleanup {
if [[ ! -z "${pid-}" ]]; then if [[ -n "${pid-}" ]]; then
echo "Stopping recording server (${pid})" echo "Stopping recording server (${pid})"
# kill the process `go run` launched # kill the process `go run` launched
pkill -P "${pid}" pkill -P "${pid}"
@ -36,7 +36,7 @@ function cleanup {
testcase="${1}" testcase="${1}"
test_root="$(dirname "${BASH_SOURCE}")" test_root="$(dirname "${BASH_SOURCE[0]}")"
testcase_dir="${test_root}/testcase-${testcase}" testcase_dir="${test_root}/testcase-${testcase}"
mkdir -p "${testcase_dir}" mkdir -p "${testcase_dir}"