test/iscsi: add iso option to rpc_config test
Make it able to run as standalone. Change-Id: Ib8d5dcd300911978f3bd9192c00049a3617438f4 Signed-off-by: Karol Latecki <karol.latecki@intel.com> Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/457961 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
This commit is contained in:
parent
6520c0e70c
commit
5afa401230
@ -5,9 +5,12 @@ rootdir=$(readlink -f $testdir/../../..)
|
|||||||
source $rootdir/test/common/autotest_common.sh
|
source $rootdir/test/common/autotest_common.sh
|
||||||
source $rootdir/test/iscsi_tgt/common.sh
|
source $rootdir/test/iscsi_tgt/common.sh
|
||||||
|
|
||||||
|
# $1 = test type posix or vpp.
|
||||||
|
# $2 = "iso" - triggers isolation mode (setting up required environment).
|
||||||
|
iscsitestinit $2 $1
|
||||||
|
|
||||||
timing_enter rpc_config
|
timing_enter rpc_config
|
||||||
|
|
||||||
# $1 = test type (posix/vpp)
|
|
||||||
if [ "$1" == "posix" ] || [ "$1" == "vpp" ]; then
|
if [ "$1" == "posix" ] || [ "$1" == "vpp" ]; then
|
||||||
TEST_TYPE=$1
|
TEST_TYPE=$1
|
||||||
else
|
else
|
||||||
@ -58,4 +61,7 @@ trap - SIGINT SIGTERM EXIT
|
|||||||
|
|
||||||
iscsicleanup
|
iscsicleanup
|
||||||
killprocess $pid
|
killprocess $pid
|
||||||
|
|
||||||
|
iscsitestfini $2 $1
|
||||||
|
|
||||||
timing_exit rpc_config
|
timing_exit rpc_config
|
||||||
|
Loading…
Reference in New Issue
Block a user