@@ -984,7 +984,7 @@ var _ = Describe("[rfe_id:77446] LLC-aware cpu pinning", Label(string(label.Open
984984 logs , err := pods .GetLogs (testclient .K8sClient , testPod )
985985 Expect (err ).ToNot (HaveOccurred (), "Cannot get logs from test pod" )
986986
987- allocatedCPUs , err := cpuset .Parse (logs )
987+ allocatedCPUs , err := cpuset .Parse (strings . TrimSpace ( logs ) )
988988 Expect (err ).ToNot (HaveOccurred (), "Cannot get cpuset for pod %s/%s from logs %q" , testPod .Namespace , testPod .Name , logs )
989989 Expect (allocatedCPUs .Size ()).To (Equal (askingCPUs ), "asked %d exclusive CPUs got %v" , askingCPUs , allocatedCPUs )
990990
@@ -1006,7 +1006,7 @@ var _ = Describe("[rfe_id:77446] LLC-aware cpu pinning", Label(string(label.Open
10061006 logs , err := pods .GetLogs (testclient .K8sClient , testPod )
10071007 Expect (err ).ToNot (HaveOccurred (), "Cannot get logs from test pod" )
10081008
1009- allocatedCPUs , err := cpuset .Parse (logs )
1009+ allocatedCPUs , err := cpuset .Parse (strings . TrimSpace ( logs ) )
10101010 Expect (err ).ToNot (HaveOccurred (), "Cannot get cpuset for pod %s/%s from logs %q" , testPod .Namespace , testPod .Name , logs )
10111011 Expect (allocatedCPUs .Size ()).To (Equal (askingCPUs ), "asked %d exclusive CPUs got %v" , askingCPUs , allocatedCPUs )
10121012
0 commit comments