Commit a59ab6df authored by Michal Berger's avatar Michal Berger Committed by Konrad Sztyber
Browse files

test/nvmf: Make sure crashes are not ignored in nvmf_shutdown_tc*



Change-Id: I97151f955fa6fd3077679fbb65b595ecae8e40d7
Signed-off-by: default avatarMichal Berger <michal.berger@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/24848


Reviewed-by: default avatarJim Harris <jim.harris@samsung.com>
Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: default avatarKonrad Sztyber <konrad.sztyber@intel.com>
parent 6881fb40
Loading
Loading
Loading
Loading
+3 −10
Original line number Diff line number Diff line
@@ -134,13 +134,8 @@ function nvmf_shutdown_tc3() {

	# Kill the target half way through
	killprocess $nvmfpid
	nvmfpid=

	# Verify bdevperf exits successfully
	sleep 1
	# TODO: Right now the NVMe-oF initiator will not correctly detect broken connections
	# and so it will never shut down. Just kill it.
	kill -9 $perfpid || true
	NOT wait $perfpid

	stoptarget
}
@@ -158,11 +153,9 @@ function nvmf_shutdown_tc4() {

	# Kill the target half way through
	killprocess $nvmfpid
	nvmfpid=

	# Due to IOs are completed with errors, perf exits with bad status
	sleep 1
	wait $perfpid || true
	# Due to IOs are completed with errors, perf exits with bad status
	NOT wait $perfpid
	stoptarget
}