Fix huge logs produced when errors occur in k6 54/138854/2
authorsourabh_sourabh <sourabh.sourabh@est.tech>
Tue, 27 Aug 2024 14:38:41 +0000 (15:38 +0100)
committerSourabh Sourabh <sourabh.sourabh@est.tech>
Fri, 30 Aug 2024 13:53:21 +0000 (13:53 +0000)
 - Changed k6 config to ignore all the error logs.

Issue-ID: CPS-2344
Change-Id: Iad7be43ae5bb909518f9f7d8e386a97c96c349e3
Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech>
k6-tests/ncmp/run-all-tests.sh

index 2db32ec..1fa661a 100755 (executable)
@@ -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