Code Review
/
vpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
e10ace2
)
hs-test: create temporary folder at init
46/38446/2
author
Maros Ondrejicka
<mondreji@cisco.com>
Wed, 8 Mar 2023 15:01:43 +0000
(16:01 +0100)
committer
Florin Coras
<florin.coras@gmail.com>
Wed, 15 Mar 2023 04:43:39 +0000
(
04:43
+0000)
Type: test
Signed-off-by: Maros Ondrejicka <mondreji@cisco.com>
Change-Id: I6444582ce83beddc5cb2fcb31942a4c2e9556bb6
extras/hs-test/container.go
patch
|
blob
|
history
diff --git
a/extras/hs-test/container.go
b/extras/hs-test/container.go
index
4b3002f
..
43e0339
100644
(file)
--- 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)
+ }
+}