Commit 5afa4012 authored by Karol Latecki's avatar Karol Latecki Committed by Darek Stojaczyk
Browse files

test/iscsi: add iso option to rpc_config test



Make it able to run as standalone.

Change-Id: Ib8d5dcd300911978f3bd9192c00049a3617438f4
Signed-off-by: default avatarKarol Latecki <karol.latecki@intel.com>
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/457961


Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: default avatarDarek Stojaczyk <dariusz.stojaczyk@intel.com>
Reviewed-by: default avatarShuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
parent 6520c0e7
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -5,9 +5,12 @@ rootdir=$(readlink -f $testdir/../../..)
source $rootdir/test/common/autotest_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

# $1 = test type (posix/vpp)
if [ "$1" == "posix" ] || [ "$1" == "vpp" ]; then
	TEST_TYPE=$1
else
@@ -58,4 +61,7 @@ trap - SIGINT SIGTERM EXIT

iscsicleanup
killprocess $pid

iscsitestfini $2 $1

timing_exit rpc_config