mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
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:
parent
c92d9f7974
commit
7004a718d9
@ -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)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user