test/iscsi: Re-enable hotremove tests

Change-Id: Id32d08a1f23c85ceb6855561ec4e51a220d80cf0
Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-on: https://review.gerrithub.io/417200
Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
This commit is contained in:
Shuhei Matsumoto 2018-07-04 14:30:01 +09:00 committed by Changpeng Liu
parent e3a7138571
commit 64ac643aa5

View File

@ -94,6 +94,27 @@ if [ $RUN_NIGHTLY -eq 1 ]; then
running_config
fi
# Start hotplug test case.
$fio_py 1048576 128 rw 10 &
fio_pid=$!
sleep 3
set +e
$rpc_py delete_malloc_bdev 'Malloc0'
wait $fio_pid
fio_status=$?
if [ $fio_status -eq 0 ]; then
echo "iscsi hotplug test: fio successful - expected failure"
set -e
exit 1
else
echo "iscsi hotplug test: fio failed as expected"
fi
set -e
iscsicleanup
$rpc_py delete_target_node 'iqn.2016-06.io.spdk:Target3'