@@ -972,7 +972,7 @@ var _ = Describe("[rfe_id:77446] LLC-aware cpu pinning", Label(string(label.Open
972972 logs , err := pods .GetLogs (testclient .K8sClient , testPod )
973973 Expect (err ).ToNot (HaveOccurred (), "Cannot get logs from test pod" )
974974
975- allocatedCPUs , err := cpuset .Parse (logs )
975+ allocatedCPUs , err := cpuset .Parse (strings . TrimSpace ( logs ) )
976976 Expect (err ).ToNot (HaveOccurred (), "Cannot get cpuset for pod %s/%s from logs %q" , testPod .Namespace , testPod .Name , logs )
977977 Expect (allocatedCPUs .Size ()).To (Equal (askingCPUs ), "asked %d exclusive CPUs got %v" , askingCPUs , allocatedCPUs )
978978
@@ -994,7 +994,7 @@ var _ = Describe("[rfe_id:77446] LLC-aware cpu pinning", Label(string(label.Open
994994 logs , err := pods .GetLogs (testclient .K8sClient , testPod )
995995 Expect (err ).ToNot (HaveOccurred (), "Cannot get logs from test pod" )
996996
997- allocatedCPUs , err := cpuset .Parse (logs )
997+ allocatedCPUs , err := cpuset .Parse (strings . TrimSpace ( logs ) )
998998 Expect (err ).ToNot (HaveOccurred (), "Cannot get cpuset for pod %s/%s from logs %q" , testPod .Namespace , testPod .Name , logs )
999999 Expect (allocatedCPUs .Size ()).To (Equal (askingCPUs ), "asked %d exclusive CPUs got %v" , askingCPUs , allocatedCPUs )
10001000
0 commit comments