Skip to content

Commit

Permalink
test: skip lvm test if not enough user disks available
Browse files Browse the repository at this point in the history
E.g. in trusted-boot pipeline, we don't have extra disks.

Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
  • Loading branch information
smira committed Oct 8, 2024
1 parent 519a483 commit 182325c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/integration/api/volumes.go
Original file line number Diff line number Diff line change
Expand Up @@ -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], " ")

Expand Down

0 comments on commit 182325c

Please sign in to comment.