Skip to content

Commit 1cc181a

Browse files
frelondavidcassany
authored andcommitted
Use ContainSubstring
The output will contain a line-break, check that the string contains "SecureBoot enabled" instead. Signed-off-by: Fredrik Lönnegren <[email protected]>
1 parent c0f39f2 commit 1cc181a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/smoke/smoke_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ var _ = Describe("Elemental Smoke tests", func() {
4444
It("has booted with secure boot enabled", func() {
4545
out, err := s.Command("mokutil --sb-state")
4646
Expect(err).ToNot(HaveOccurred())
47-
Expect(out).To(Equal("SecureBoot enabled"))
47+
Expect(out).Should(ContainSubstring("SecureBoot enabled"))
4848
})
4949

5050
It("has default services on", func() {

0 commit comments

Comments
 (0)