mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-02 00:02:01 +00:00
Merge pull request #1509 from bergwolf/kata-check
cli: fix kata-check test
This commit is contained in:
commit
da08b3afc9
@ -215,7 +215,7 @@ func TestCheckCheckKernelModulesNoNesting(t *testing.T) {
|
||||
assert.NoError(err)
|
||||
assert.Equal(count, uint32(0))
|
||||
|
||||
re := regexp.MustCompile(`\bwarning\b.*\bnested\b`)
|
||||
re := regexp.MustCompile(`.*\bnested\b`)
|
||||
matches := re.FindAllStringSubmatch(buf.String(), -1)
|
||||
assert.NotEmpty(matches)
|
||||
}
|
||||
@ -309,7 +309,7 @@ func TestCheckCheckKernelModulesNoUnrestrictedGuest(t *testing.T) {
|
||||
assert.NoError(err)
|
||||
assert.Equal(count, uint32(0))
|
||||
|
||||
re := regexp.MustCompile(`\bwarning\b.*\bunrestricted_guest\b`)
|
||||
re := regexp.MustCompile(`.*\bunrestricted_guest\b`)
|
||||
matches := re.FindAllStringSubmatch(buf.String(), -1)
|
||||
assert.NotEmpty(matches)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user