From 392fdc8a8936947cf5c2be3f1d45d733b7899ab9 Mon Sep 17 00:00:00 2001 From: Karol Latecki Date: Thu, 19 Oct 2017 13:35:41 +0200 Subject: [PATCH] test/lvol: Remove unsupported test Removing test for lvol bdev resize as it is not supported Change-Id: I73284f2260e595bfa5db2c24d2e37fcd1b255bd8 Signed-off-by: Karol Latecki Reviewed-on: https://review.gerrithub.io/383086 Tested-by: SPDK Automated Test System Reviewed-by: Tomasz Zawadzki Reviewed-by: Daniel Verkamp --- autotest.sh | 2 +- test/lvol/test_cases.py | 13 ++++++++----- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/autotest.sh b/autotest.sh index a4c68a817..288f9201a 100755 --- a/autotest.sh +++ b/autotest.sh @@ -126,7 +126,7 @@ if [ $SPDK_TEST_VHOST -eq 1 ]; then run_test ./test/vhost/spdk_vhost.sh --integrity run_test ./test/vhost/spdk_vhost.sh --integrity-lvol-scsi run_test ./test/vhost/spdk_vhost.sh --integrity-lvol-blk - run_test ./test/lvol/lvol.sh --test-cases=1,2,3,5,6,7,9,10,11,12,13,16,17,21 + run_test ./test/lvol/lvol.sh --test-cases=1,2,3,5,6,7,10,11,12,13,16,17,21 timing_exit vhost fi diff --git a/test/lvol/test_cases.py b/test/lvol/test_cases.py index a7993e419..0b99926cc 100644 --- a/test/lvol/test_cases.py +++ b/test/lvol/test_cases.py @@ -202,11 +202,14 @@ class TestCases(object): uuid_bdev = self.c.construct_lvol_bdev(uuid_store, size) fail_count += self.c.check_get_bdevs_methods(uuid_bdev, size) - self.c.resize_lvol_bdev(uuid_bdev, size + 1) - self.c.resize_lvol_bdev(uuid_bdev, size * 2) - self.c.resize_lvol_bdev(uuid_bdev, size * 3) - self.c.resize_lvol_bdev(uuid_bdev, (size * 4) - 1) - self.c.resize_lvol_bdev(uuid_bdev, 0) + + # TODO: Improve resize_lvol_bdev tests to verify if bdev was actually + # correctly resized + fail_count += self.c.resize_lvol_bdev(uuid_bdev, size + 1) + fail_count += self.c.resize_lvol_bdev(uuid_bdev, size * 2) + fail_count += self.c.resize_lvol_bdev(uuid_bdev, size * 3) + fail_count += self.c.resize_lvol_bdev(uuid_bdev, (size * 4) - 1) + fail_count += self.c.resize_lvol_bdev(uuid_bdev, 0) self.c.destroy_lvol_store(uuid_store) fail_count += self.c.check_get_lvol_stores("", "")