From eae70fcc4d20026c57e0cfa37081107bbf1bf091 Mon Sep 17 00:00:00 2001 From: Yanir Quinn Date: Mon, 16 Sep 2024 17:56:16 +0300 Subject: [PATCH] e2e: amend irqbalance tests to check IRQBALANCE_BANNED_CPUS Use IRQBALANCE_BANNED_CPULIST instead of the deprecated IRQBALANCE_BANNED_CPUS in irqbalance tests to match tuned irqbalance plugin xref: https://github.com/redhat-performance/tuned/pull/657/commits/7825b1133039f370e0863a0f824e842e237e4123 --- .../performanceprofile/functests/1_performance/irqbalance.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/e2e/performanceprofile/functests/1_performance/irqbalance.go b/test/e2e/performanceprofile/functests/1_performance/irqbalance.go index 17f9baa91..05f3bd833 100644 --- a/test/e2e/performanceprofile/functests/1_performance/irqbalance.go +++ b/test/e2e/performanceprofile/functests/1_performance/irqbalance.go @@ -334,7 +334,7 @@ func getIrqBalanceBannedCPUs(ctx context.Context, node *corev1.Node) (cpuset.CPU bannedCPUs := unquote(strings.TrimSpace(items[1])) testlog.Infof("banned CPUs: %q", bannedCPUs) - banned, err := components.CPUMaskToCPUSet(bannedCPUs) + banned, err := cpuset.Parse(bannedCPUs) if err != nil { return cpuset.New(), fmt.Errorf("failed to parse the banned CPUs: %v", err) } @@ -359,7 +359,7 @@ func findIrqBalanceBannedCPUsVarFromConf(conf string) string { if strings.HasPrefix(line, "#") { continue } - if !strings.HasPrefix(line, "IRQBALANCE_BANNED_CPUS") { + if !strings.HasPrefix(line, "IRQBALANCE_BANNED_CPULIST") { continue } return line