Merge pull request #122769 from thockin/bump_shellcheck_version

Bump shellcheck to 0.9.0
This commit is contained in:
Kubernetes Prow Robot
2024-02-05 08:45:29 -08:00
committed by GitHub
10 changed files with 37 additions and 74 deletions

View File

@@ -269,7 +269,7 @@ runTests() {
| tee ${junit_filename_prefix:+"${junit_filename_prefix}.stdout"} \
| grep --binary-files=text "${go_test_grep_pattern}" && rc=$? || rc=$?
produceJUnitXMLReport "${junit_filename_prefix}"
return ${rc}
return "${rc}"
fi
kube::log::status "Running tests with code coverage ${KUBE_RACE:+"and with ${KUBE_RACE}"}"
@@ -340,7 +340,7 @@ runTests() {
go tool cover -html="${COMBINED_COVER_PROFILE}" -o="${coverage_html_file}"
kube::log::status "Combined coverage report: ${coverage_html_file}"
return ${test_result}
return "${test_result}"
}
reportCoverageToCoveralls() {

View File

@@ -114,7 +114,7 @@ function is-explicitly-chosen {
index=0
for e in "${TARGET_LIST[@]}"; do
if [[ "${e}" == "${name}" ]]; then
TARGET_LIST[${index}]=""
TARGET_LIST[index]=""
return
fi
index=$((index + 1))