Spdk/test/dpdk_memory_utility/test_dpdk_mem_info.sh
Krzysztof Karas eaebf84102 autotest_common.sh: change rpc_py to rpc_cmd
Change rpc_py to use rpc_cmd function.
The former needs to be defined explicitly in the scripts
that uses function, while the latter is a function
already available in autotest_common.sh.
Additionally delete unnecessary rpc_py declarations
and override rpc_cmd where additional arguments are
needed (like -s sock_name.sock).

Change-Id: I835f7eb308cd77658a2a425e153ab7ca460b5b61
Signed-off-by: Krzysztof Karas <krzysztof.karas@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/12872
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
2022-09-01 11:15:03 +00:00

24 lines
407 B
Bash
Executable File

#!/usr/bin/env bash
testdir=$(readlink -f $(dirname $0))
rootdir=$(readlink -f $testdir/../..)
source $rootdir/test/common/autotest_common.sh
MEM_SCRIPT="$rootdir/scripts/dpdk_mem_info.py"
"${SPDK_APP[@]}" &
spdkpid=$!
waitforlisten $spdkpid
trap 'killprocess $spdkpid' SIGINT SIGTERM EXIT
$rpc_py env_dpdk_get_mem_stats
$MEM_SCRIPT
$MEM_SCRIPT -m 0
trap - SIGINT SIGTERM EXIT
killprocess $spdkpid