diff options
author | Adrian Villin <avillin@cisco.com> | 2024-05-31 06:46:52 -0400 |
---|---|---|
committer | Adrian Villin <avillin@cisco.com> | 2024-05-31 06:46:52 -0400 |
commit | fd366b4da620ad92626129ea65b5c7fc14f95c86 (patch) | |
tree | 8b1608a42335f44b3933a2fc4badc54dcfe11260 /extras/hs-test/container.go | |
parent | d1a5161200bfe424f147c0556a49492d6603b9c7 (diff) |
hs-test: container logging improvements
- Reduced the amount of error messages while obtaining container logs
when a test fails by keeping track of started containers. NginxPerf
tests still have those error messages, because wrk/ab containers shut
themselves down before the test ends.
Type: test
Change-Id: I40a193345e5b46aec1834774f23aebc822eee885
Signed-off-by: Adrian Villin <avillin@cisco.com>
Diffstat (limited to 'extras/hs-test/container.go')
-rw-r--r-- | extras/hs-test/container.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/extras/hs-test/container.go b/extras/hs-test/container.go index 83693f47d78..44d84d5fe65 100644 --- a/extras/hs-test/container.go +++ b/extras/hs-test/container.go @@ -162,7 +162,7 @@ func (c *Container) create() error { } func (c *Container) allocateCpus() { - c.suite.containerCount += 1 + c.suite.startedContainers = append(c.suite.startedContainers, c) c.allocatedCpus = c.suite.AllocateCpus() c.suite.log("Allocated CPUs " + fmt.Sprint(c.allocatedCpus) + " to container " + c.name) } |