Merge pull request #42103 from thaJeztah/20.10_backport_skip_test

This commit is contained in:
Akihiro Suda 2021-03-04 00:23:01 +09:00 committed by GitHub
commit bc795b19bf
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"})