mirror of
https://github.com/aljazceru/kata-containers.git
synced 2026-02-21 06:24:23 +01:00
Fix nasty bug which resulted in `kata-env` showing `VMContainerCapable = true` even on amd64 systems without virtualisation support (thankfully `kata-check` still showed the correct results). Added arch-specific tests to avoid any possibility of regression. Fixes #660. Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
17 lines
308 B
Go
17 lines
308 B
Go
// Copyright (c) 2018 IBM
|
|
//
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
//
|
|
|
|
package main
|
|
|
|
import "testing"
|
|
|
|
func getExpectedHostDetails(tmpdir string) (HostInfo, error) {
|
|
return genericGetExpectedHostDetails(tmpdir)
|
|
}
|
|
|
|
func TestEnvGetEnvInfoSetsCPUType(t *testing.T) {
|
|
testEnvGetEnvInfoSetsCPUTypeGeneric(t)
|
|
}
|