Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
hs-test: support for multiple workers
[vpp.git]
/
extras
/
hs-test
/
container.go
diff --git
a/extras/hs-test/container.go
b/extras/hs-test/container.go
index
1dc49b7
..
fd3aa47
100644
(file)
--- a/
extras/hs-test/container.go
+++ b/
extras/hs-test/container.go
@@
-216,16
+216,12
@@
func (c *Container) getEnvVarsAsCliOption() string {
return cliOption
}
return cliOption
}
-func (c *Container) newVppInstance(
additionalConfig
...Stanza) (*VppInstance, error) {
+func (c *Container) newVppInstance(
cpus []int, additionalConfigs
...Stanza) (*VppInstance, error) {
vpp := new(VppInstance)
vpp.container = c
vpp := new(VppInstance)
vpp.container = c
-
- if len(additionalConfig) > 0 {
- vpp.additionalConfig = additionalConfig[0]
- }
-
+ vpp.cpus = cpus
+ vpp.additionalConfig = append(vpp.additionalConfig, additionalConfigs...)
c.vppInstance = vpp
c.vppInstance = vpp
-
return vpp, nil
}
return vpp, nil
}