test/lvol: wait for bdevs to be examined
The lvol "tasting" done as a part of bdev examine is
done asynchronously in background, so we need to sleep
for a while before checking the list of created lvol
bdevs.
Fixes #801
Signed-off-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com>
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/458228 (master)
(cherry picked from commit 036ca4acb6
)
Change-Id: Iab94ac5c66d329cd93955b53262fc03c6b3c9f3a
Signed-off-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/458449
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
This commit is contained in:
parent
880cbc5da3
commit
a15831658d
@ -2078,6 +2078,9 @@ class TestCases(object):
|
||||
self.c.construct_aio_bdev(aio_bdev0, base_name_1M, 4096)
|
||||
self.c.construct_aio_bdev(aio_bdev1, base_name_32M, 4096)
|
||||
|
||||
# wait 1 second to allow time for lvolstore tasting
|
||||
sleep(1)
|
||||
|
||||
# Check if configuration was properly loaded after tasting
|
||||
# get all info all lvs and lvol bdevs, compare with previous info
|
||||
new_bdevs = sorted(self.c.get_lvol_bdevs(), key=lambda x: x["name"])
|
||||
|
Loading…
Reference in New Issue
Block a user