From 7d6705f833aa28a480035c34e0431fd24211d091 Mon Sep 17 00:00:00 2001 From: Tomasz Zawadzki Date: Mon, 10 Jun 2019 02:06:11 -0400 Subject: [PATCH] test/blockdev: run bdevio tests via RPC With this change, bdevio tests are not ran immediately after starting the application. This will allow to configure new bdevs via RPC and run tests on demand during script's execution. Change-Id: I9740fca92c26cb2a39fbdc7cfb132ad53cec3787 Signed-off-by: Tomasz Zawadzki Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/455235 Tested-by: SPDK CI Jenkins Reviewed-by: Darek Stojaczyk Reviewed-by: Shuhei Matsumoto --- test/bdev/blockdev.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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