mirror of https://github.com/k3s-io/k3s
fix shellcheck in pkg/kubectl/cmd/edit/testdata/record_testcase.sh
parent
0e78dd2d17
commit
998147de59
|
@ -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
|
||||||
|
|
|
@ -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}"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue