Skip to content

Commit d7adf39

Browse files
committed
RootFul/RootLess > Rootful/Rootless
Signed-off-by: apostasie <[email protected]>
1 parent a4a7282 commit d7adf39

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

cmd/nerdctl/image/image_convert_linux_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ func TestImageConvertNydusVerify(t *testing.T) {
108108
test.Binary("nydusify"),
109109
test.Binary("nydusd"),
110110
test.Not(nerdtest.Docker),
111-
nerdtest.RootFul,
111+
nerdtest.Rootful,
112112
),
113113
Setup: func(data test.Data, helpers test.Helpers) {
114114
helpers.Ensure("pull", testutil.CommonImage)

cmd/nerdctl/network/network_remove_linux_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ import (
3131
func TestNetworkRemove(t *testing.T) {
3232
testCase := nerdtest.Setup()
3333

34-
testCase.Require = nerdtest.RootFul
34+
testCase.Require = nerdtest.Rootful
3535

3636
testCase.SubTests = []*test.Case{
3737
{

docs/testing/tools.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ nerdtest.Docker // a test only run on Docker - normally used with test.Not(nerdt
385385
nerdtest.Soci // a test requires the soci snapshotter
386386
nerdtest.Stargz // a test requires the stargz snapshotter
387387
nerdtest.Rootless // a test requires Rootless
388-
nerdtest.RootFul // a test requires Rootful
388+
nerdtest.Rootful // a test requires Rootful
389389
nerdtest.Build // a test requires buildkit
390390
nerdtest.CGroup // a test requires cgroup
391391
nerdtest.NerdctlNeedsFixing // indicates that a test cannot be run on nerdctl yet as a fix is required

pkg/testutil/nerdtest/requirements.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,8 @@ var BrokenTest = func(message string, req *test.Requirement) *test.Requirement {
131131
}
132132
}
133133

134-
// RootLess marks a test as suitable only for the rootless environment
135-
var RootLess = &test.Requirement{
134+
// Rootless marks a test as suitable only for the rootless environment
135+
var Rootless = &test.Requirement{
136136
Check: func(data test.Data, helpers test.Helpers) (ret bool, mess string) {
137137
// Make sure we DO not return "IsRootless true" for docker
138138
ret = getTarget() == targetNerdctl && rootlessutil.IsRootless()
@@ -145,8 +145,8 @@ var RootLess = &test.Requirement{
145145
},
146146
}
147147

148-
// RootFul marks a test as suitable only for rootful env
149-
var RootFul = test.Not(RootLess)
148+
// Rootful marks a test as suitable only for rootful env
149+
var Rootful = test.Not(Rootless)
150150

151151
// CGroup requires that cgroup is enabled
152152
var CGroup = &test.Requirement{

0 commit comments

Comments
 (0)