test/blobstore: clean aio.bdev and json if there is an unexpected exit in running
If there is an unexpected exit in running blob_io_wait.sh, error log will show as below: bdev.c:5502:bdev_open: *ERROR*: Could not open aio0 - lvol module already claimed it vbdev_lvol.c: 265:vbdev_lvs_create: *ERROR*: Cannot create blobstore device Fixes #1718. Change-Id: I28e2664689e41d088a00ea6a0631a2537323054f Signed-off-by: wanghailiangx <hailiangx.e.wang@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/5503 Community-CI: Broadcom CI Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: <dongx.yi@intel.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
This commit is contained in:
parent
b8c15b044c
commit
e4f8ec053c
@ -16,7 +16,7 @@ truncate -s 64M $testdir/aio.bdev
|
||||
$rootdir/test/app/bdev_svc/bdev_svc --wait-for-rpc &
|
||||
bdev_svc_pid=$!
|
||||
|
||||
trap 'killprocess $bdev_svc_pid; exit 1' SIGINT SIGTERM EXIT
|
||||
trap 'rm -f $testdir/bdevperf.json; rm -f $testdir/aio.bdev; killprocess $bdev_svc_pid; exit 1' SIGINT SIGTERM EXIT
|
||||
|
||||
waitforlisten $bdev_svc_pid
|
||||
# Minimal number of bdev io pool (128) and cache (1)
|
||||
|
Loading…
Reference in New Issue
Block a user