e2e: node: {cpu,topo}mgr: round up test requirement

A cpu/topology manager e2e test wants to require one exclusive CPU
and a share of CPU time; let's round up the allocatable CPU requirements
(from 1 to 2) to reduce the chances of false negatives.

Signed-off-by: Francesco Romani <fromani@redhat.com>
This commit is contained in:
Francesco Romani 2022-02-02 14:02:17 +01:00
parent c92d9f7974
commit 7004a718d9

View File

@ -354,14 +354,14 @@ func runTopologyManagerPolicySuiteTests(f *framework.Framework) {
ginkgo.By("running a Gu pod") ginkgo.By("running a Gu pod")
runGuPodTest(f, 1) runGuPodTest(f, 1)
ginkgo.By("running multiple Gu and non-Gu pods")
runMultipleGuNonGuPods(f, cpuCap, cpuAlloc)
// Skip rest of the tests if CPU allocatable < 3. // Skip rest of the tests if CPU allocatable < 3.
if cpuAlloc < 3 { if cpuAlloc < 3 {
e2eskipper.Skipf("Skipping rest of the CPU Manager tests since CPU capacity < 3") e2eskipper.Skipf("Skipping rest of the CPU Manager tests since CPU capacity < 3")
} }
ginkgo.By("running multiple Gu and non-Gu pods")
runMultipleGuNonGuPods(f, cpuCap, cpuAlloc)
ginkgo.By("running a Gu pod requesting multiple CPUs") ginkgo.By("running a Gu pod requesting multiple CPUs")
runMultipleCPUGuPod(f) runMultipleCPUGuPod(f)