Commit 6db3ac3a authored by GangCao's avatar GangCao Committed by Jim Harris
Browse files

Test/Bdev: wait PID to exit on error testing



Fix issue: #2611

Change-Id: I6156598936fa44793d9f4ffc6fe5fb3a7bbc6278
Signed-off-by: default avatarGangCao <gang.cao@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/13804


Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: default avatarKonrad Sztyber <konrad.sztyber@intel.com>
Reviewed-by: default avatarJim Harris <james.r.harris@intel.com>
parent 4f2f1aa9
Loading
Loading
Loading
Loading
+1 −7
Original line number Diff line number Diff line
@@ -403,13 +403,7 @@ function error_test_suite() {
	$rpc_py bdev_error_inject_error $ERR_DEV 'all' 'failure' -n 5

	$rootdir/test/bdev/bdevperf/bdevperf.py -t 1 perform_tests &
	sleep 1

	# Bdevperf is expected to exit when hitting error
	if kill -0 $ERR_PID; then
		echo "Process still exists, but was expected to fail due to IO error. Pid: $ERR_PID"
		exit 1
	fi
	NOT wait $ERR_PID
}

function qd_sampling_function_test() {