mirror of
https://github.com/aljazceru/kata-containers.git
synced 2025-12-18 14:54:19 +01:00
runtime: add CPU cores and memory basic info for kata-env sub-command
Add host memory size(Total/Free/Avaiable) and CPU cores in host info for `kata-runtime kata-env`. Fixes: #405 Signed-off-by: bin liu <bin@hyper.sh>
This commit is contained in:
@@ -45,6 +45,9 @@ func testEnvGetEnvInfoSetsCPUTypeGeneric(t *testing.T) {
|
||||
env, err := getEnvInfo(configFile, config)
|
||||
assert.NoError(err)
|
||||
|
||||
// Free/Available are changing
|
||||
expectedEnv.Host.Memory = env.Host.Memory
|
||||
|
||||
assert.Equal(expectedEnv, env)
|
||||
|
||||
assert.Equal(archRequiredCPUFlags, savedArchRequiredCPUFlags)
|
||||
|
||||
Reference in New Issue
Block a user