summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaros Ondrejicka <mondreji@cisco.com>2023-03-08 16:01:43 +0100
committerFlorin Coras <florin.coras@gmail.com>2023-03-15 04:43:39 +0000
commitf4ddf16eece8648f41b9b3491e4d972aeefb077f (patch)
tree9bc9604b9b1b90bc3dbafa48bd67a0251a061692
parente10ace267429a9203acf742ab64e434c79fc5544 (diff)
hs-test: create temporary folder at init
Type: test Signed-off-by: Maros Ondrejicka <mondreji@cisco.com> Change-Id: I6444582ce83beddc5cb2fcb31942a4c2e9556bb6
-rw-r--r--extras/hs-test/container.go7
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)
+ }
+}