cri: relax test for system without hugetlb
These unit tests don't check hugetlb. However by setting TolerateMissingHugetlbController to false, these tests can't be run on system without hugetlb (e.g. Debian buildd). Signed-off-by: Shengjing Zhu <zhsj@debian.org>
This commit is contained in:
@@ -214,7 +214,7 @@ func TestUpdateOCILinuxResource(t *testing.T) {
|
||||
t.Logf("TestCase %q", desc)
|
||||
config := criconfig.Config{
|
||||
PluginConfig: criconfig.PluginConfig{
|
||||
TolerateMissingHugetlbController: false,
|
||||
TolerateMissingHugetlbController: true,
|
||||
DisableHugetlbController: false,
|
||||
},
|
||||
}
|
||||
|
||||
@@ -56,6 +56,7 @@ func newTestCRIService() *criService {
|
||||
StateDir: testStateDir,
|
||||
PluginConfig: criconfig.PluginConfig{
|
||||
SandboxImage: testSandboxImage,
|
||||
TolerateMissingHugetlbController: true,
|
||||
},
|
||||
},
|
||||
imageFSPath: testImageFSPath,
|
||||
|
||||
Reference in New Issue
Block a user