Skip to content

Commit c1ccdff

Browse files
committed
libcontainer/intelrdt: always run unit tests
Run unit tests irrespective of the underlying system configuration, i.e. even if RDT has not been enabled or is not supported. The tests do not depend on real kernel interfaces. Signed-off-by: Markus Lehtonen <[email protected]>
1 parent 685dc58 commit c1ccdff

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

libcontainer/intelrdt/intelrdt_test.go

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,6 @@ import (
1111
)
1212

1313
func TestIntelRdtSetL3CacheSchema(t *testing.T) {
14-
if !IsCATEnabled() {
15-
return
16-
}
17-
1814
helper := NewIntelRdtTestUtil(t)
1915
defer helper.cleanup()
2016

@@ -46,10 +42,6 @@ func TestIntelRdtSetL3CacheSchema(t *testing.T) {
4642
}
4743

4844
func TestIntelRdtSetMemBwSchema(t *testing.T) {
49-
if !IsMBAEnabled() {
50-
return
51-
}
52-
5345
helper := NewIntelRdtTestUtil(t)
5446
defer helper.cleanup()
5547

@@ -81,10 +73,6 @@ func TestIntelRdtSetMemBwSchema(t *testing.T) {
8173
}
8274

8375
func TestIntelRdtSetMemBwScSchema(t *testing.T) {
84-
if !IsMBAScEnabled() {
85-
return
86-
}
87-
8876
helper := NewIntelRdtTestUtil(t)
8977
defer helper.cleanup()
9078

0 commit comments

Comments
 (0)