You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* e2e:rps: log the expected rps mask
print the expected rps mask for physical and virtual network devices.
This change would help with debugging the test in case of failure.
Signed-off-by: Talor Itzhak <titzhak@redhat.com>
* e2e:rps: print mask instead of cpuset
Printing the rps masks in case of failure is more readable then printing the cpuset.
this is because an empty mask i.e 0000 is interpeted as an empty cpuset i.e "" (empty quotes)
Signed-off-by: Talor Itzhak <titzhak@redhat.com>
* e2e:rps: print device path with wrong mask
In case the test failed, we asserts only the desired and actual mask,
but we are not specifing the device on which the RPS mask was bad.
This patch adds the full device path as part of the error message.
Signed-off-by: Talor Itzhak <titzhak@redhat.com>
---------
Signed-off-by: Talor Itzhak <titzhak@redhat.com>
Expect(err).ToNot(HaveOccurred(), "failed to parse RPS mask %q", rpsMaskContent)
360
-
Expect(rpsCPUs.Equals(expectedRPSCPUs)).To(BeTrue(), "the default rps mask is different from the reserved CPUs; have %q want %q", rpsCPUs.String(), expectedRPSCPUs.String())
369
+
Expect(rpsCPUs.Equals(expectedRPSCPUs)).To(BeTrue(), "the default rps mask is different from the reserved CPUs mask; have %q want %q", rpsMaskContent, expectedRPSCPUsMask)
Expect(err).ToNot(HaveOccurred(), "failed to exec command %q on node %q", cmd, node.Name)
390
402
391
-
for_, devRPS:=rangestrings.Split(devsRPS, "\n") {
392
-
rpsCPUs, err=components.CPUMaskToCPUSet(devRPS)
403
+
devsRPSMap=makeDevRPSMap(devsRPSContent)
404
+
forpath, mask:=rangedevsRPSMap {
405
+
rpsCPUs, err=components.CPUMaskToCPUSet(mask)
393
406
Expect(err).ToNot(HaveOccurred())
394
-
Expect(rpsCPUs.Equals(expectedPhysRPSCPUs)).To(BeTrue(), "a host devicerps mask is different from the reserved CPUs; have %q want %q", rpsCPUs.String(), expectedPhysRPSCPUs.String())
407
+
Expect(rpsCPUs.Equals(expectedPhysRPSCPUs)).To(BeTrue(), "a host physical device: %q rps mask is different than expected; have %q want %q", path, mask, expectedPhyRPSCPUsMask)
0 commit comments