@@ -27,7 +27,6 @@ import (
27
27
"strings"
28
28
29
29
"github.com/onsi/ginkgo/v2"
30
-
31
30
v1 "k8s.io/api/core/v1"
32
31
"k8s.io/apimachinery/pkg/util/uuid"
33
32
"k8s.io/kubernetes/test/e2e/framework"
@@ -216,7 +215,7 @@ func (l *ltrMgr) cleanupLocalVolumeDirectory(ctx context.Context, ltr *LocalTest
216
215
func (l * ltrMgr ) setupLocalVolumeDirectoryLink (ctx context.Context , node * v1.Node , parameters map [string ]string ) * LocalTestResource {
217
216
hostDir := l .getTestDir ()
218
217
hostDirBackend := hostDir + "-backend"
219
- cmd := fmt .Sprintf ("mkdir -p %s && ln -s %s %s" , hostDirBackend , hostDirBackend , hostDir )
218
+ cmd := fmt .Sprintf ("mkdir %s && ln -s %s %s" , hostDirBackend , hostDirBackend , hostDir )
220
219
err := l .hostExec .IssueCommand (ctx , cmd , node )
221
220
framework .ExpectNoError (err )
222
221
return & LocalTestResource {
@@ -236,7 +235,7 @@ func (l *ltrMgr) cleanupLocalVolumeDirectoryLink(ctx context.Context, ltr *Local
236
235
237
236
func (l * ltrMgr ) setupLocalVolumeDirectoryBindMounted (ctx context.Context , node * v1.Node , parameters map [string ]string ) * LocalTestResource {
238
237
hostDir := l .getTestDir ()
239
- cmd := fmt .Sprintf ("mkdir -p %s && mount --bind %s %s" , hostDir , hostDir , hostDir )
238
+ cmd := fmt .Sprintf ("mkdir %s && mount --bind %s %s" , hostDir , hostDir , hostDir )
240
239
err := l .hostExec .IssueCommand (ctx , cmd , node )
241
240
framework .ExpectNoError (err )
242
241
return & LocalTestResource {
@@ -256,7 +255,7 @@ func (l *ltrMgr) cleanupLocalVolumeDirectoryBindMounted(ctx context.Context, ltr
256
255
func (l * ltrMgr ) setupLocalVolumeDirectoryLinkBindMounted (ctx context.Context , node * v1.Node , parameters map [string ]string ) * LocalTestResource {
257
256
hostDir := l .getTestDir ()
258
257
hostDirBackend := hostDir + "-backend"
259
- cmd := fmt .Sprintf ("mkdir -p %s && mount --bind %s %s && ln -s %s %s" , hostDirBackend , hostDirBackend , hostDirBackend , hostDirBackend , hostDir )
258
+ cmd := fmt .Sprintf ("mkdir %s && mount --bind %s %s && ln -s %s %s" , hostDirBackend , hostDirBackend , hostDirBackend , hostDirBackend , hostDir )
260
259
err := l .hostExec .IssueCommand (ctx , cmd , node )
261
260
framework .ExpectNoError (err )
262
261
return & LocalTestResource {
0 commit comments