From eb90b93e3f57dab045956c7d9700f53336df6202 Mon Sep 17 00:00:00 2001 From: stevenhorsman Date: Fri, 28 Feb 2025 11:46:36 +0000 Subject: [PATCH] shellcheck: Fix shellcheck SC2104 > In functions, use return instead of break. > rationale: break or continue are used to abort or continue a loop, and are not the right way to exit a function. Use return instead. Signed-off-by: stevenhorsman --- tests/integration/cri-containerd/integration-tests.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/integration/cri-containerd/integration-tests.sh b/tests/integration/cri-containerd/integration-tests.sh index 6dd3b0eec2..09aced4e24 100755 --- a/tests/integration/cri-containerd/integration-tests.sh +++ b/tests/integration/cri-containerd/integration-tests.sh @@ -665,7 +665,7 @@ function main() { if [[ "${KATA_HYPERVISOR}" == "qemu-runtime-rs" ]]; then info "TestKilledVmmCleanup and TestDeviceCgroup skipped for qemu with runtime-rs" info "Please check out https://github.com/kata-containers/kata-containers/issues/9375" - break + return else TestKilledVmmCleanup