diff options
author | Maros Ondrejicka <mondreji@cisco.com> | 2023-03-08 16:01:43 +0100 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2023-03-15 04:43:39 +0000 |
commit | f4ddf16eece8648f41b9b3491e4d972aeefb077f (patch) | |
tree | 9bc9604b9b1b90bc3dbafa48bd67a0251a061692 /extras/hs-test/container.go | |
parent | e10ace267429a9203acf742ab64e434c79fc5544 (diff) |
hs-test: create temporary folder at init
Type: test
Signed-off-by: Maros Ondrejicka <mondreji@cisco.com>
Change-Id: I6444582ce83beddc5cb2fcb31942a4c2e9556bb6
Diffstat (limited to 'extras/hs-test/container.go')
-rw-r--r-- | extras/hs-test/container.go | 7 |
1 files changed, 7 insertions, 0 deletions
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) + } +} |