SC2002: Useless cat. Consider 'cmd < file | ..' or 'cmd file | ..' instead. Minor fix in test_converter: don't use python3 as config_converter.py is executable. Change-Id: I250e893b48fa95e94778dcc31deb91e6ac0b39c0 Signed-off-by: Pawel Kaminski <pawelx.kaminski@intel.com> Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/481600 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> Community-CI: SPDK CI Jenkins <sys_sgci@intel.com>
21 lines
529 B
Bash
Executable File
21 lines
529 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
testdir=$(readlink -f $(dirname $0))
|
|
rootdir=$(readlink -f $testdir/../../..)
|
|
source $rootdir/test/common/autotest_common.sh
|
|
|
|
trap 'killprocess $spdk_tgt_pid; exit 1' ERR
|
|
|
|
$rootdir/app/spdk_tgt/spdk_tgt &
|
|
spdk_tgt_pid=$!
|
|
waitforlisten $spdk_tgt_pid
|
|
|
|
# Test deprecated rpcs in json
|
|
$rootdir/scripts/rpc.py load_config -i < $testdir/conf.json
|
|
|
|
# Test deprecated rpcs in rpc.py
|
|
$rootdir/scripts/rpc.py delete_malloc_bdev "Malloc0"
|
|
$rootdir/scripts/rpc.py delete_malloc_bdev "Malloc1"
|
|
|
|
killprocess $spdk_tgt_pid
|