diff options
author | Filip Tehlar <ftehlar@cisco.com> | 2023-09-05 15:36:28 +0200 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2023-09-05 15:55:55 +0000 |
commit | 109f3ce4eba0a6ba869752f24cfaae73ab70bb2d (patch) | |
tree | 338b184b4f9beca38ddcd6b8008cf52f656983ea /extras/hs-test/container.go | |
parent | 3b770881b95ee33beb525513ebaece4ac93469dc (diff) |
hs-test: point gdb to vpp source files
Type: test
Change-Id: Ie5867737e5d49fd45cc15b690af3493263fb2f6f
Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
Diffstat (limited to 'extras/hs-test/container.go')
-rw-r--r-- | extras/hs-test/container.go | 3 |
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 |