test/iscsi: iSCSI initiator test now use common configuration
This patch changes hardcoded value for target IP to one from common.sh. Config file here should be replaced with RPC in the future. Change-Id: I24ef413fcb9369a74b1db182338b5b41e0874a55 Signed-off-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Reviewed-on: https://review.gerrithub.io/406364 Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
This commit is contained in:
parent
15d0dac543
commit
f63b058d4f
@ -1,5 +0,0 @@
|
||||
[iSCSI_Initiator]
|
||||
URL iscsi://127.0.0.1/iqn.2016-06.io.spdk:disk1/0 iSCSI0
|
||||
|
||||
[Ioat]
|
||||
Disable Yes
|
2
test/iscsi_tgt/initiator/bdev.conf.in
Normal file
2
test/iscsi_tgt/initiator/bdev.conf.in
Normal file
@ -0,0 +1,2 @@
|
||||
[Ioat]
|
||||
Disable Yes
|
@ -35,7 +35,13 @@ $rpc_py construct_malloc_bdev $MALLOC_BDEV_SIZE $MALLOC_BLOCK_SIZE
|
||||
$rpc_py construct_target_node disk1 disk1_alias 'Malloc0:0' $PORTAL_TAG:$INITIATOR_TAG 256 -d
|
||||
sleep 1
|
||||
trap "killprocess $pid; exit 1" SIGINT SIGTERM EXIT
|
||||
|
||||
# Prepare config file for iSCSI initiator
|
||||
cp $testdir/bdev.conf.in $testdir/bdev.conf
|
||||
echo "[iSCSI_Initiator]" >> $testdir/bdev.conf
|
||||
echo " URL iscsi://$TARGET_IP/iqn.2016-06.io.spdk:disk1/0 iSCSI0" >> $testdir/bdev.conf
|
||||
$rootdir/test/bdev/bdevperf/bdevperf -c $testdir/bdev.conf -q 128 -s 4096 -w verify -t 5 -d 512
|
||||
rm -f $testdir/bdev.conf
|
||||
|
||||
trap - SIGINT SIGTERM EXIT
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user