From 74af28e6123b190fe8f37bb4e422f6fe9546a313 Mon Sep 17 00:00:00 2001 From: sourabh_sourabh Date: Tue, 27 Aug 2024 15:38:41 +0100 Subject: Fix huge logs produced when errors occur in k6 - Changed k6 config to ignore all the error logs. Issue-ID: CPS-2344 Change-Id: Iad7be43ae5bb909518f9f7d8e386a97c96c349e3 Signed-off-by: sourabh_sourabh --- k6-tests/ncmp/run-all-tests.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/k6-tests/ncmp/run-all-tests.sh b/k6-tests/ncmp/run-all-tests.sh index 2db32ecd76..1fa661a472 100755 --- a/k6-tests/ncmp/run-all-tests.sh +++ b/k6-tests/ncmp/run-all-tests.sh @@ -19,7 +19,9 @@ pushd "$(dirname "$0")" >/dev/null || exit 1 number_of_failures=0 echo "Running K6 performance tests..." -k6 --quiet run ncmp-kpi.js > summary.csv || ((number_of_failures++)) + +# Redirecting stderr to /dev/null to prevent large log files +k6 --quiet run ncmp-kpi.js > summary.csv 2>/dev/null || ((number_of_failures++)) if [ -f summary.csv ]; then -- cgit 1.2.3-korg