From 036ca4acb6563b2f62775b81e10f3d741045de4b Mon Sep 17 00:00:00 2001 From: Darek Stojaczyk Date: Mon, 17 Jun 2019 08:17:29 +0200 Subject: [PATCH] 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 Change-Id: Iab94ac5c66d329cd93955b53262fc03c6b3c9f3a Signed-off-by: Darek Stojaczyk Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/458228 Tested-by: SPDK CI Jenkins Reviewed-by: Changpeng Liu Reviewed-by: Ben Walker --- test/lvol/test_cases.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/lvol/test_cases.py b/test/lvol/test_cases.py index 1fa4877a9..a3f92c261 100644 --- a/test/lvol/test_cases.py +++ b/test/lvol/test_cases.py @@ -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"])