From 182325cb0791da1d4dcd3914a643c44232502524 Mon Sep 17 00:00:00 2001 From: Andrey Smirnov Date: Tue, 8 Oct 2024 19:13:40 +0400 Subject: [PATCH] test: skip lvm test if not enough user disks available E.g. in trusted-boot pipeline, we don't have extra disks. Signed-off-by: Andrey Smirnov --- internal/integration/api/volumes.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/internal/integration/api/volumes.go b/internal/integration/api/volumes.go index ce80894a97..6216a2be88 100644 --- a/internal/integration/api/volumes.go +++ b/internal/integration/api/volumes.go @@ -201,7 +201,9 @@ func (suite *VolumesSuite) TestLVMActivation() { userDisks, err := suite.UserDisks(suite.ctx, node) suite.Require().NoError(err) - suite.Require().GreaterOrEqual(len(userDisks), 2, "expected at least two user disks to be available") + if len(userDisks) < 2 { + suite.T().Skipf("skipping test, not enough user disks available on node %s/%s: %q", node, nodeName, userDisks) + } userDisksJoined := strings.Join(userDisks[:2], " ")