Test/Bdev: wait PID to exit on error testing
Fix issue: #2611 Change-Id: I6156598936fa44793d9f4ffc6fe5fb3a7bbc6278 Signed-off-by: GangCao <gang.cao@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/13804 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
parent
4f2f1aa9c5
commit
6db3ac3a8e
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user