From 028569bcc36b78e56a03fb669541314d9d40eea2 Mon Sep 17 00:00:00 2001 From: "Vinoth.V" Date: Sun, 26 Jun 2022 12:21:36 -0600 Subject: [PATCH] CORTX-30083: Fix Codacy issues under "net" directory - Fixing Codacy issues under net/test dir Signed-off-by: Vinoth.V --- net/test/st/run-1x1.sh | 4 ++-- net/test/st/st-bulk.sh | 22 +++++++++++----------- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/net/test/st/run-1x1.sh b/net/test/st/run-1x1.sh index c4e24c9044d..3b41aa3c5ee 100644 --- a/net/test/st/run-1x1.sh +++ b/net/test/st/run-1x1.sh @@ -57,7 +57,7 @@ node_start_addr() DIR_COUNTER=$(($DIR_COUNTER + 1)) "$CMD_M0NETTESTD" -a "$addr" -c "$addr_console" & popd > /dev/null - eval PID_"$4"=$! + eval PID_"${pid_role}"=$! fi } @@ -145,7 +145,7 @@ fi "$PARSABLE" \ $BULK_PARAMETERS & PID_CONSOLE=$! -wait $PID_CONSOLE +wait "$PID_CONSOLE" # The same time for fini sleep "$NODE_INIT_DELAY" diff --git a/net/test/st/st-bulk.sh b/net/test/st/st-bulk.sh index 53f43fedbc4..5b72e4ed9e2 100755 --- a/net/test/st/st-bulk.sh +++ b/net/test/st/st-bulk.sh @@ -21,15 +21,15 @@ CWD=$(cd "$( dirname "$0")" && pwd) -source $CWD/st-config.sh -TEST_TYPE="bulk" -MSG_NR=1048576 -MSG_SIZE=1m -CONCURRENCY_CLIENT=8 -CONCURRENCY_SERVER=16 -BD_BUF_NR_CLIENT=16 -BD_BUF_NR_SERVER=32 -BD_BUF_SIZE=16k -BD_BUF_NR_MAX=8 +source "$CWD"/st-config.sh +export TEST_TYPE="bulk" +export MSG_NR=1048576 +export MSG_SIZE=1m +export CONCURRENCY_CLIENT=8 +export CONCURRENCY_SERVER=16 +export BD_BUF_NR_CLIENT=16 +export BD_BUF_NR_SERVER=32 +export BD_BUF_SIZE=16k +export BD_BUF_NR_MAX=8 -source $CWD/run-1x1.sh +source "$CWD"/run-1x1.sh