Skip to content

Commit

Permalink
libcontainer/intelrdt: always run unit tests
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
marquiz committed May 4, 2021
1 parent 685dc58 commit c1ccdff
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions libcontainer/intelrdt/intelrdt_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@ import (
)

func TestIntelRdtSetL3CacheSchema(t *testing.T) {
if !IsCATEnabled() {
return
}

helper := NewIntelRdtTestUtil(t)
defer helper.cleanup()

Expand Down Expand Up @@ -46,10 +42,6 @@ func TestIntelRdtSetL3CacheSchema(t *testing.T) {
}

func TestIntelRdtSetMemBwSchema(t *testing.T) {
if !IsMBAEnabled() {
return
}

helper := NewIntelRdtTestUtil(t)
defer helper.cleanup()

Expand Down Expand Up @@ -81,10 +73,6 @@ func TestIntelRdtSetMemBwSchema(t *testing.T) {
}

func TestIntelRdtSetMemBwScSchema(t *testing.T) {
if !IsMBAScEnabled() {
return
}

helper := NewIntelRdtTestUtil(t)
defer helper.cleanup()

Expand Down

0 comments on commit c1ccdff

Please sign in to comment.