From 608d0069d98579b0635be978dea8e316f77a8841 Mon Sep 17 00:00:00 2001 From: Filip Tehlar Date: Fri, 28 Apr 2023 10:29:47 +0200 Subject: hs-test: support for multiple workers Type: test Signed-off-by: Filip Tehlar Change-Id: Ie90e4b02c268bc3ca40171b03829f5686fb83162 --- extras/hs-test/suite_no_topo_test.go | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'extras/hs-test/suite_no_topo_test.go') diff --git a/extras/hs-test/suite_no_topo_test.go b/extras/hs-test/suite_no_topo_test.go index 8ef56b24d8b..8f7c87620ce 100644 --- a/extras/hs-test/suite_no_topo_test.go +++ b/extras/hs-test/suite_no_topo_test.go @@ -12,25 +12,24 @@ type NoTopoSuite struct { } func (s *NoTopoSuite) SetupSuite() { + s.HstSuite.SetupSuite() s.loadNetworkTopology("tap") - s.loadContainerTopology("single") } func (s *NoTopoSuite) SetupTest() { - s.skipIfUnconfiguring() - s.setupVolumes() - s.setupContainers() + s.HstSuite.SetupTest() // Setup test conditions - var startupConfig Stanza - startupConfig. + var sessionConfig Stanza + sessionConfig. newStanza("session"). append("enable"). append("use-app-socket-api").close() + cpus := s.AllocateCpus() container := s.getContainerByName(singleTopoContainerVpp) - vpp, _ := container.newVppInstance(startupConfig) + vpp, _ := container.newVppInstance(cpus, sessionConfig) vpp.start() tapInterface := s.netInterfaces[tapInterfaceName] -- cgit 1.2.3-korg