raven/base/docker/docker-20.10.4-Skip-pkg-idtools-tests-that-require-root.patch
2024-02-21 17:40:51 +06:00

21 lines
632 B
Diff

Index: docker-ce-17.11.0-ce/pkg/idtools/idtools_unix_test.go
===================================================================
--- docker-ce-17.11.0-ce.orig/pkg/idtools/idtools_unix_test.go
+++ docker-ce-17.11.0-ce/pkg/idtools/idtools_unix_test.go
@@ -239,6 +239,7 @@ func delUser(t *testing.T, name string)
}
func TestParseSubidFileWithNewlinesAndComments(t *testing.T) {
+ RequiresRoot(t)
tmpDir, err := os.MkdirTemp("", "parsesubid")
if err != nil {
t.Fatal(err)
@@ -267,6 +268,7 @@ dockremap:231072:65536`
}
func TestGetRootUIDGID(t *testing.T) {
+ RequiresRoot(t)
uidMap := []IDMap{
{
ContainerID: 0,