hs-test: create temporary folder at init
Type: test
Signed-off-by: Maros Ondrejicka <mondreji@cisco.com>
Change-Id: I6444582ce83beddc5cb2fcb31942a4c2e9556bb6
diff --git a/extras/hs-test/container.go b/extras/hs-test/container.go
index 4b3002f..43e0339 100644
--- a/extras/hs-test/container.go
+++ b/extras/hs-test/container.go
@@ -321,3 +321,10 @@
c.copy(f.Name(), targetConfigName)
}
+
+func init() {
+ cmd := exec.Command("mkdir", "-p", logDir)
+ if err := cmd.Run(); err != nil {
+ panic(err)
+ }
+}