Skip to content

Commit 4170d42

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.
1 parent 10913d9 commit 4170d42

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)