From: Maros Ondrejicka Date: Wed, 8 Mar 2023 15:01:43 +0000 (+0100) Subject: hs-test: create temporary folder at init X-Git-Tag: v23.10-rc0~137 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=f4ddf16eece8648f41b9b3491e4d972aeefb077f;p=vpp.git hs-test: create temporary folder at init Type: test Signed-off-by: Maros Ondrejicka Change-Id: I6444582ce83beddc5cb2fcb31942a4c2e9556bb6 --- diff --git a/extras/hs-test/container.go b/extras/hs-test/container.go index 4b3002f15be..43e033999e5 100644 --- a/extras/hs-test/container.go +++ b/extras/hs-test/container.go @@ -321,3 +321,10 @@ func (c *Container) createConfig(targetConfigName string, templateName string, v c.copy(f.Name(), targetConfigName) } + +func init() { + cmd := exec.Command("mkdir", "-p", logDir) + if err := cmd.Run(); err != nil { + panic(err) + } +}