From 9ac68310f7120a0e614d1d5bfb28b9f60fb54071 Mon Sep 17 00:00:00 2001 From: Peng Tao Date: Tue, 9 Apr 2019 02:04:44 -0700 Subject: [PATCH] cli: fix kata-check test We don't really require nested nor unrestricted_guest to run. And there is no point validating host cpu properties in UT. Fixes: #1508 Signed-off-by: Peng Tao --- cli/kata-check_amd64_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cli/kata-check_amd64_test.go b/cli/kata-check_amd64_test.go index efec707390..78ed52f63d 100644 --- a/cli/kata-check_amd64_test.go +++ b/cli/kata-check_amd64_test.go @@ -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) }