From 80146f2078dd793ef9cae3e78b46fb33f07db90b Mon Sep 17 00:00:00 2001 From: Beraldo Leal Date: Tue, 29 Aug 2023 17:04:07 -0400 Subject: [PATCH] tests: Fixes cpuType check on AMD machines cpuType is not initialized yet. gets 0 (Intel) by default, failing on AMD machines. Fixes #7785 Signed-off-by: Beraldo Leal --- src/runtime/cmd/kata-runtime/kata-check_amd64_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/src/runtime/cmd/kata-runtime/kata-check_amd64_test.go b/src/runtime/cmd/kata-runtime/kata-check_amd64_test.go index 47a6c21200..24fdf2c338 100644 --- a/src/runtime/cmd/kata-runtime/kata-check_amd64_test.go +++ b/src/runtime/cmd/kata-runtime/kata-check_amd64_test.go @@ -51,6 +51,7 @@ func TestCCCheckCLIFunction(t *testing.T) { var cpuData []testCPUData var moduleData []testModuleData + cpuType = getCPUtype() if cpuType == cpuTypeIntel { cpuData = []testCPUData{ {archGenuineIntel, "lm vmx sse4_1", false},