diff --git a/test/bdev/blockdev.sh b/test/bdev/blockdev.sh index 09e1b26d6..4f783995c 100755 --- a/test/bdev/blockdev.sh +++ b/test/bdev/blockdev.sh @@ -96,7 +96,14 @@ else # Dynamic memory management is not supported on BSD PRE_RESERVED_MEM=2048 fi -$testdir/bdevio/bdevio -s $PRE_RESERVED_MEM -c $testdir/bdev.conf +$testdir/bdevio/bdevio -w -s $PRE_RESERVED_MEM -c $testdir/bdev.conf & +bdevio_pid=$! +trap "killprocess $bdevio_pid; exit 1" SIGINT SIGTERM EXIT +echo "Process bdevio pid: $bdevio_pid" +waitforlisten $bdevio_pid +$testdir/bdevio/tests.py perform_tests +killprocess $bdevio_pid +trap - SIGINT SIGTERM EXIT timing_exit bounds timing_enter nbd_gpt