From d099d78e4ac135ff2fcf24e08ad7573067b37a5a Mon Sep 17 00:00:00 2001
From: Jamie Anderson <jamieand@amazon.com>
Date: Mon, 16 Aug 2021 17:31:32 +0000
Subject: [PATCH] Skip pkg/archive tests that require root

Signed-off-by: Jamie Anderson <jamieand@amazon.com>
---
 pkg/archive/changes_test.go | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/pkg/archive/changes_test.go b/pkg/archive/changes_test.go
index 0a2689d..490af6d 100644
--- a/pkg/archive/changes_test.go
+++ b/pkg/archive/changes_test.go
@@ -13,6 +13,7 @@ import (
 	"time"
 
 	"github.com/docker/docker/pkg/system"
+	"github.com/docker/docker/testutil"
 	"gotest.tools/v3/assert"
 	"gotest.tools/v3/skip"
 )
@@ -187,6 +188,7 @@ func TestChangesWithChanges(t *testing.T) {
 
 // See https://github.com/docker/docker/pull/13590
 func TestChangesWithChangesGH13590(t *testing.T) {
+	testutil.RequiresRoot(t)
 	// TODO Windows. Needs further investigation to identify the failure
 	if runtime.GOOS == "windows" {
 		t.Skip("needs more investigation")
-- 
2.31.0.rc2

