Skip to content

Commit f9c4ecd

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 79d292b commit f9c4ecd

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

2117
const (
@@ -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

5547
const (
@@ -80,10 +72,6 @@ func TestIntelRdtSetMemBwSchema(t *testing.T) {
8072
}
8173

8274
func TestIntelRdtSetMemBwScSchema(t *testing.T) {
83-
if !IsMBAScEnabled() {
84-
return
85-
}
86-
8775
helper := NewIntelRdtTestUtil(t)
8876

8977
const (

0 commit comments

Comments
 (0)