Skip to content

Commit

Permalink
Make the test work also on Alpine
Browse files Browse the repository at this point in the history
because the device there appears as /dev/dm-0

Signed-off-by: Dimitris Karakasilis <[email protected]>
  • Loading branch information
jimmykarily committed Sep 4, 2024
1 parent 29771de commit 001c3fa
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions tests/encryption_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,18 @@ package mos_test

import (
"fmt"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
. "github.com/spectrocloud/peg/matcher"
"gopkg.in/yaml.v3"
"os"
"os/exec"
"path"
"path/filepath"
"strconv"
"strings"
"syscall"

. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
. "github.com/spectrocloud/peg/matcher"
"gopkg.in/yaml.v3"
)

var installationOutput string
Expand Down Expand Up @@ -316,7 +317,7 @@ install:
out, err := vm.Sudo("blkid")
Expect(err).ToNot(HaveOccurred(), out)
Expect(out).To(MatchRegexp("TYPE=\"crypto_LUKS\" PARTLABEL=\"persistent\""), out)
Expect(out).To(MatchRegexp("/dev/mapper.*LABEL=\"COS_PERSISTENT\""), out)
Expect(out).To(MatchRegexp("/dev/(mapper|dm).*LABEL=\"COS_PERSISTENT\""), out)
})
})

Expand Down

0 comments on commit 001c3fa

Please sign in to comment.