From 5afa4012307b168e591bed02fb5352e505855d78 Mon Sep 17 00:00:00 2001 From: Karol Latecki Date: Thu, 13 Jun 2019 16:26:18 +0200 Subject: [PATCH] test/iscsi: add iso option to rpc_config test Make it able to run as standalone. Change-Id: Ib8d5dcd300911978f3bd9192c00049a3617438f4 Signed-off-by: Karol Latecki Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/457961 Tested-by: SPDK CI Jenkins Reviewed-by: Darek Stojaczyk Reviewed-by: Shuhei Matsumoto --- test/iscsi_tgt/rpc_config/rpc_config.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/test/iscsi_tgt/rpc_config/rpc_config.sh b/test/iscsi_tgt/rpc_config/rpc_config.sh index df82f91dc..22f0b85a6 100755 --- a/test/iscsi_tgt/rpc_config/rpc_config.sh +++ b/test/iscsi_tgt/rpc_config/rpc_config.sh @@ -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