From 8e77cde8056223ea392041ed0e3dfe6da87ac525 Mon Sep 17 00:00:00 2001 From: Anurag Mittal Date: Tue, 24 Dec 2024 11:50:39 +0100 Subject: [PATCH] added quotes for commands --- .github/scripts/e2e_tests_metrics.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/scripts/e2e_tests_metrics.sh b/.github/scripts/e2e_tests_metrics.sh index 664db788..2f2596b4 100755 --- a/.github/scripts/e2e_tests_metrics.sh +++ b/.github/scripts/e2e_tests_metrics.sh @@ -106,8 +106,8 @@ if [[ "$EXPECTED_CREATE_BUCKET" -gt 0 ]]; then CREATE_BUCKET_COUNT="$(echo "$METRICS_OUTPUT" | grep 'scality_cosi_driver_s3_requests_total' | grep 'method="CreateBucket"' | grep 'status="success"' | awk '{print $NF}')" DELETE_BUCKET_COUNT="$(echo "$METRICS_OUTPUT" | grep 'scality_cosi_driver_s3_requests_total' | grep 'method="DeleteBucket"' | grep 'status="success"' | awk '{print $NF}')" - CREATE_BUCKET_DURATION=$(echo "$METRICS_OUTPUT" | grep 'scality_cosi_driver_s3_request_duration_seconds_sum' | grep 'method="CreateBucket"' | awk '{print $NF}') - DELETE_BUCKET_DURATION=$(echo "$METRICS_OUTPUT" | grep 'scality_cosi_driver_s3_request_duration_seconds_sum' | grep 'method="DeleteBucket"' | awk '{print $NF}') + CREATE_BUCKET_DURATION="$(echo "$METRICS_OUTPUT" | grep 'scality_cosi_driver_s3_request_duration_seconds_sum' | grep 'method="CreateBucket"' | awk '{print $NF}')" + DELETE_BUCKET_DURATION="$(echo "$METRICS_OUTPUT" | grep 'scality_cosi_driver_s3_request_duration_seconds_sum' | grep 'method="DeleteBucket"' | awk '{print $NF}')" echo "CreateBucket Count: $CREATE_BUCKET_COUNT, Expected: $EXPECTED_CREATE_BUCKET" | tee -a "$LOG_FILE" echo "DeleteBucket Count: $DELETE_BUCKET_COUNT, Expected: $EXPECTED_DELETE_BUCKET" | tee -a "$LOG_FILE"