mirror of
https://github.com/aljazceru/kata-containers.git
synced 2025-12-26 18:44:47 +01:00
There is no vendor field in /proc/cpuinfo contents on ppc64le. Make sure to return "" for vendor field for ppc64le and fix all the corresponding testcases as well. Fixes: #864 Signed-off-by: Nitesh Konkar niteshkonkar@in.ibm.com
19 lines
388 B
Go
19 lines
388 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"
|
|
return genericGetExpectedHostDetails(tmpdir, expectedVendor, expectedModel)
|
|
}
|
|
|
|
func TestEnvGetEnvInfoSetsCPUType(t *testing.T) {
|
|
testEnvGetEnvInfoSetsCPUTypeGeneric(t)
|
|
}
|