diff options
author | sourabh_sourabh <sourabh.sourabh@est.tech> | 2024-08-27 15:38:41 +0100 |
---|---|---|
committer | Sourabh Sourabh <sourabh.sourabh@est.tech> | 2024-08-30 13:53:21 +0000 |
commit | 74af28e6123b190fe8f37bb4e422f6fe9546a313 (patch) | |
tree | d9b8cbaa1f1aa5f9d762c452af06e3045a67d65d /k6-tests | |
parent | 607a8563a6e9b935c6feb2604ae0752a07a91895 (diff) |
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 <sourabh.sourabh@est.tech>
Diffstat (limited to 'k6-tests')
-rwxr-xr-x | k6-tests/ncmp/run-all-tests.sh | 4 |
1 files changed, 3 insertions, 1 deletions
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 |