Skip to content

Commit 38f868c

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 8698335 commit 38f868c

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
@@ -12,10 +12,6 @@ import (
1212
)
1313

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

@@ -47,10 +43,6 @@ func TestIntelRdtSetL3CacheSchema(t *testing.T) {
4743
}
4844

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

@@ -82,10 +74,6 @@ func TestIntelRdtSetMemBwSchema(t *testing.T) {
8274
}
8375

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

0 commit comments

Comments
 (0)