Add test image name to the OS image field of the perf metrics
This commit is contained in:
@@ -176,10 +176,14 @@ func getTestNodeInfo(f *framework.Framework, testName, testDesc string) map[stri
|
||||
framework.Failf("Fail to fetch Memory capacity value as Int64.")
|
||||
}
|
||||
|
||||
image := node.Status.NodeInfo.OSImage
|
||||
if framework.TestContext.ImageDescription != "" {
|
||||
image = fmt.Sprintf("%s (%s)", image, framework.TestContext.ImageDescription)
|
||||
}
|
||||
return map[string]string{
|
||||
"node": nodeName,
|
||||
"test": testName,
|
||||
"image": node.Status.NodeInfo.OSImage,
|
||||
"image": image,
|
||||
"machine": fmt.Sprintf("cpu:%dcore,memory:%.1fGB", cpuValue, float32(memoryValue)/(1024*1024*1024)),
|
||||
"desc": testDesc,
|
||||
}
|
||||
|
Reference in New Issue
Block a user