aboutsummaryrefslogtreecommitdiffstats
path: root/extras/hs-test/container.go
diff options
context:
space:
mode:
Diffstat (limited to 'extras/hs-test/container.go')
-rw-r--r--extras/hs-test/container.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/extras/hs-test/container.go b/extras/hs-test/container.go
index fd3aa47b21b..76d08c7d2d6 100644
--- a/extras/hs-test/container.go
+++ b/extras/hs-test/container.go
@@ -129,6 +129,9 @@ func (c *Container) getContainerArguments() string {
args := "--ulimit nofile=90000:90000 --cap-add=all --privileged --network host --rm"
args += c.getVolumesAsCliOption()
args += c.getEnvVarsAsCliOption()
+ if *vppSourceFileDir != "" {
+ args += fmt.Sprintf(" -v %s:%s", *vppSourceFileDir, *vppSourceFileDir)
+ }
args += " --name " + c.name + " " + c.image
args += " " + c.extraRunningArgs
return args