Skip to content

Commit

Permalink
Use ContainSubstring
Browse files Browse the repository at this point in the history
The output will contain a line-break, check that the string contains
"SecureBoot enabled" instead.

Signed-off-by: Fredrik Lönnegren <fredrik.lonnegren@suse.com>
  • Loading branch information
frelon authored and davidcassany committed Mar 21, 2024
1 parent c0f39f2 commit 1cc181a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/smoke/smoke_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ var _ = Describe("Elemental Smoke tests", func() {
It("has booted with secure boot enabled", func() {
out, err := s.Command("mokutil --sb-state")
Expect(err).ToNot(HaveOccurred())
Expect(out).To(Equal("SecureBoot enabled"))
Expect(out).Should(ContainSubstring("SecureBoot enabled"))
})

It("has default services on", func() {
Expand Down

0 comments on commit 1cc181a

Please sign in to comment.