1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Merge pull request #42094 from zhsj/skip-test

pkg/archive: TestUntarParentPathPermissions requires root
This commit is contained in:
Sebastiaan van Stijn 2021-02-28 11:40:49 +01:00 committed by GitHub
commit a602b052a9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -160,6 +160,7 @@ func TestTarWithHardLinkAndRebase(t *testing.T) {
// TestUntarParentPathPermissions is a regression test to check that missing
// parent directories are created with the expected permissions
func TestUntarParentPathPermissions(t *testing.T) {
skip.If(t, os.Getuid() != 0, "skipping test that requires root")
buf := &bytes.Buffer{}
w := tar.NewWriter(buf)
err := w.WriteHeader(&tar.Header{Name: "foo/bar"})