mirror of
https://github.com/aljazceru/kata-containers.git
synced 2026-01-06 16:04:26 +01:00
Since arch-specific func getExpectedHostDetails holds undefined struct field SupportVSocks on arm64, unit test TestEnvGetEnvInfoSetsCPUType, TestEnvGetHostInfo and so on failed. I'm trying to use generic func genericgetExpectedHostDetails on arm64 to avoid similar issues. Fixes: #1287 Signed-off-by: Penny Zheng <penny.zheng@arm.com>
20 lines
453 B
Go
20 lines
453 B
Go
// Copyright (c) 2018 IBM
|
|
//
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
//
|
|
|
|
package main
|
|
|
|
import "testing"
|
|
|
|
func getExpectedHostDetails(tmpdir string) (HostInfo, error) {
|
|
expectedVendor := ""
|
|
expectedModel := "POWER8"
|
|
expectedVMContainerCapable := false
|
|
return genericGetExpectedHostDetails(tmpdir, expectedVendor, expectedModel, expectedVMContainerCapable)
|
|
}
|
|
|
|
func TestEnvGetEnvInfoSetsCPUType(t *testing.T) {
|
|
testEnvGetEnvInfoSetsCPUTypeGeneric(t)
|
|
}
|