diff options
author | Adrian Villin <avillin@cisco.com> | 2024-07-17 14:38:48 +0200 |
---|---|---|
committer | Dave Wallace <dwallacelf@gmail.com> | 2024-07-17 16:10:29 +0000 |
commit | b69ee00c34ede374dad78f33106b39cf75087d5a (patch) | |
tree | d7f741ee85c4e9cddf973a03c3bbdf33c302fb5f /extras/hs-test/infra/cpu.go | |
parent | aedfd7ca3d2f5b17cfd20d4dc3919fe765adb27a (diff) |
hs-test: minor cpu pinning suite improvements
- added max cpu check for CI
- added a check for Ip4AddrAllocator: fixes a case where teardown panics
if a test crashes before allocator gets initialized
Type: test
Change-Id: Ica12366cd79d77801964dfbdc8ee7c9969b4a9ce
Signed-off-by: Adrian Villin <avillin@cisco.com>
Diffstat (limited to 'extras/hs-test/infra/cpu.go')
-rw-r--r-- | extras/hs-test/infra/cpu.go | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/extras/hs-test/infra/cpu.go b/extras/hs-test/infra/cpu.go index 6ba60e5dfe4..a1682819a2f 100644 --- a/extras/hs-test/infra/cpu.go +++ b/extras/hs-test/infra/cpu.go @@ -39,13 +39,6 @@ func (c *CpuAllocatorT) Allocate(containerCount int, nCpus int) (*CpuContext, er // indexes, not actual cores var minCpu, maxCpu int - // temporary fix for CpuPinningSuite - if strings.Contains(CurrentSpecReport().ContainerHierarchyTexts[0], "CpuPinning") { - cpuAllocator.maxContainerCount = 1 - } else { - cpuAllocator.maxContainerCount = 4 - } - if c.runningInCi { minCpu = ((c.buildNumber) * c.maxContainerCount * nCpus) maxCpu = ((c.buildNumber + 1) * c.maxContainerCount * nCpus) - 1 |