From f4ddf16eece8648f41b9b3491e4d972aeefb077f Mon Sep 17 00:00:00 2001 From: Maros Ondrejicka Date: Wed, 8 Mar 2023 16:01:43 +0100 Subject: hs-test: create temporary folder at init Type: test Signed-off-by: Maros Ondrejicka Change-Id: I6444582ce83beddc5cb2fcb31942a4c2e9556bb6 --- extras/hs-test/container.go | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'extras/hs-test') 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) + } +} -- cgit 1.2.3-korg