diff --git a/test/e2e/common_test.go b/test/e2e/common_test.go index 939624074b..f51d1b42c8 100644 --- a/test/e2e/common_test.go +++ b/test/e2e/common_test.go @@ -20,7 +20,6 @@ import ( "strconv" "strings" "sync" - "syscall" "testing" "time" @@ -1469,11 +1468,6 @@ func CopyDirectory(srcDir, dest string) error { return err } - stat, ok := fileInfo.Sys().(*syscall.Stat_t) - if !ok { - return fmt.Errorf("failed to get raw syscall.Stat_t data for %q", sourcePath) - } - switch fileInfo.Mode() & os.ModeType { case os.ModeDir: if err := os.MkdirAll(destPath, 0755); err != nil { @@ -1492,10 +1486,6 @@ func CopyDirectory(srcDir, dest string) error { } } - if err := os.Lchown(destPath, int(stat.Uid), int(stat.Gid)); err != nil { - return err - } - fInfo, err := entry.Info() if err != nil { return err