diff --git a/test/iscsi_tgt/ext4test/ext4test.sh b/test/iscsi_tgt/ext4test/ext4test.sh index b022cfb7a..6ee4a273e 100755 --- a/test/iscsi_tgt/ext4test/ext4test.sh +++ b/test/iscsi_tgt/ext4test/ext4test.sh @@ -12,6 +12,7 @@ fi timing_enter ext4test rpc_py="$rootdir/scripts/rpc.py" +node_base="iqn.2013-06.com.intel.ch.spdk" timing_enter start_iscsi_tgt @@ -22,7 +23,7 @@ echo "Process pid: $pid" trap "$rpc_py destruct_split_vbdev Name0n1 || true; killprocess $pid; rm -f $testdir/iscsi.conf; exit 1" SIGINT SIGTERM EXIT waitforlisten $pid -$rpc_py set_iscsi_options -o 30 -a 4 -b "iqn.2013-06.com.intel.ch.spdk" +$rpc_py set_iscsi_options -o 30 -a 4 -b $node_base $rpc_py start_subsystem_init $rootdir/scripts/gen_nvme.sh --json | $rpc_py load_subsystem_config $rpc_py construct_malloc_bdev 512 4096 --name Malloc0 @@ -64,10 +65,10 @@ else fi set -e -$rpc_py bdev_inject_error EE_Malloc0 'clear' 'failure' -echo "Error injection test done" - iscsicleanup +$rpc_py bdev_inject_error EE_Malloc0 'clear' 'failure' +$rpc_py delete_target_node $node_base:Target0 +echo "Error injection test done" if [ -z "$NO_NVME" ]; then $rpc_py construct_split_vbdev Nvme0n1 2 -s 10000