Merge pull request #13154 from spowelljr/fixCopyFileWindows
Fix multinode file copying test on Windowspull/13165/head
commit
c3f5295ba1
|
@ -27,6 +27,7 @@ import (
|
|||
"net"
|
||||
"os"
|
||||
"os/exec"
|
||||
"path"
|
||||
"path/filepath"
|
||||
"strings"
|
||||
"testing"
|
||||
|
@ -193,7 +194,7 @@ func validateCopyFileWithMultiNode(ctx context.Context, t *testing.T, profile st
|
|||
// copy local to node
|
||||
testCpCmd(ctx, t, profile, "", srcPath, n.Name, dstPath)
|
||||
|
||||
// copy back from node to lcoal
|
||||
// copy back from node to local
|
||||
tmpPath := filepath.Join(tmpDir, fmt.Sprintf("cp-test_%s.txt", n.Name))
|
||||
testCpCmd(ctx, t, profile, n.Name, dstPath, "", tmpPath)
|
||||
|
||||
|
@ -202,7 +203,7 @@ func validateCopyFileWithMultiNode(ctx context.Context, t *testing.T, profile st
|
|||
if n.Name == n2.Name {
|
||||
continue
|
||||
}
|
||||
fp := filepath.Join("/home/docker", fmt.Sprintf("cp-test_%s_%s.txt", n.Name, n2.Name))
|
||||
fp := path.Join("/home/docker", fmt.Sprintf("cp-test_%s_%s.txt", n.Name, n2.Name))
|
||||
testCpCmd(ctx, t, profile, n.Name, dstPath, n2.Name, fp)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue