Skip to content

Commit 6a4501a

Browse files
committed
integration: make sure registry directory exists
Signed-off-by: Tonis Tiigi <[email protected]>
1 parent ad15d56 commit 6a4501a

File tree

1 file changed

+3
-0
lines changed
  • util/testutil/integration

1 file changed

+3
-0
lines changed

util/testutil/integration/run.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,9 @@ func runMirror(t *testing.T, mirroredImages map[string]string) (host string, _ f
320320

321321
var lock *flock.Flock
322322
if mirrorDir != "" {
323+
if err := os.MkdirAll(mirrorDir, 0700); err != nil {
324+
return "", nil, err
325+
}
323326
lock = flock.New(filepath.Join(mirrorDir, "lock"))
324327
if err := lock.Lock(); err != nil {
325328
return "", nil, err

0 commit comments

Comments
 (0)