From 2831481b31c7855adebb2e73158bb3744406ad99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabiano=20Fid=C3=AAncio?= Date: Tue, 21 Apr 2026 18:03:29 +0200 Subject: [PATCH] tests: Fix shellcheck issues in cassandra_stress.sh MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix shellcheck warnings and notes identified by running shellcheck --severity=style. Signed-off-by: Fabiano FidĂȘncio --- tests/stability/cassandra_stress.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/stability/cassandra_stress.sh b/tests/stability/cassandra_stress.sh index c58a1dc97e..7048a2b5f9 100755 --- a/tests/stability/cassandra_stress.sh +++ b/tests/stability/cassandra_stress.sh @@ -8,6 +8,7 @@ set -o pipefail # General env SCRIPT_PATH=$(dirname "$(readlink -f "$0")") +# shellcheck source=/dev/null source "${SCRIPT_PATH}/common_stability.bash" IMAGE="docker.io/library/cassandra:latest" @@ -21,10 +22,14 @@ function main() { init_env check_cmds "${cmds[@]}" + # DOCKER_EXE, CTR_EXE, and CTR_RUNTIME are set by common.bash's init_env + # shellcheck disable=SC2154 sudo -E "${DOCKER_EXE}" pull "${DOCKER_IMAGE}" sudo -E "${DOCKER_EXE}" save -o "${DOCKER_IMAGE}.tar" "${DOCKER_IMAGE}" + # shellcheck disable=SC2154 sudo -E "${CTR_EXE}" i import "${DOCKER_IMAGE}.tar" + # shellcheck disable=SC2154 sudo -E "${CTR_EXE}" run -d --runtime "${CTR_RUNTIME}" "${IMAGE}" "${CONTAINER_NAME}" sh -c "${PAYLOAD_ARGS}" sudo -E "${CTR_EXE}" t exec --exec-id "$(random_name)" "${CONTAINER_NAME}" sh -c "${CMD}" info "Write one million rows"