From 49723a9ecf83ab71a9ff4174d6a40f8b71af43ce Mon Sep 17 00:00:00 2001 From: Gabriela Cervantes Date: Mon, 10 Jul 2023 16:38:10 +0000 Subject: [PATCH] metrics: Add double quotes to variables This PR adds double quotes to variables in the blogbench script to have uniformity across all the tests. Signed-off-by: Gabriela Cervantes --- tests/metrics/storage/blogbench.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/metrics/storage/blogbench.sh b/tests/metrics/storage/blogbench.sh index 19a960103d..f163b2f0e2 100755 --- a/tests/metrics/storage/blogbench.sh +++ b/tests/metrics/storage/blogbench.sh @@ -11,6 +11,7 @@ # they are total scores for all iterations (this is the blogbench default output) set -e +set -x # General env SCRIPT_PATH=$(dirname "$(readlink -f "$0")") @@ -38,7 +39,7 @@ function main() { check_ctr_images "${IMAGE}" "${DOCKERFILE}" metrics_json_init - local output=$(sudo -E ${CTR_EXE} run --rm --runtime=${CTR_RUNTIME} ${IMAGE} test ${CMD}) + local output=$(sudo -E "${CTR_EXE}" run --rm --runtime="${CTR_RUNTIME}" "${IMAGE}" test "${CMD}") # Save configuration metrics_json_start_array