kata-env: Fix amd64 VM container capable check

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>
This commit is contained in:
James O. D. Hunt
2018-08-29 12:16:36 +01:00
parent f14660f82c
commit 35d7672d73
9 changed files with 191 additions and 0 deletions

View File

@@ -198,3 +198,7 @@ foo : bar
}
}
}
func TestSetCPUtype(t *testing.T) {
testSetCPUTypeGeneric(t)
}