hs-test: create temporary folder at init

Type: test
Signed-off-by: Maros Ondrejicka <mondreji@cisco.com>
Change-Id: I6444582ce83beddc5cb2fcb31942a4c2e9556bb6
This commit is contained in:
Maros Ondrejicka
2023-03-08 16:01:43 +01:00
committed by Florin Coras
parent e10ace2674
commit f4ddf16eec

View File

@ -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)
}
}