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:
parent
52471721fd
commit
352a8f49f7
@ -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,
|
||||
},
|
||||
}
|
||||
|
@ -55,7 +55,8 @@ func newTestCRIService() *criService {
|
||||
RootDir: testRootDir,
|
||||
StateDir: testStateDir,
|
||||
PluginConfig: criconfig.PluginConfig{
|
||||
SandboxImage: testSandboxImage,
|
||||
SandboxImage: testSandboxImage,
|
||||
TolerateMissingHugetlbController: true,
|
||||
},
|
||||
},
|
||||
imageFSPath: testImageFSPath,
|
||||
|
Loading…
Reference in New Issue
Block a user