From f9c4ecd89e50bf826845de49652bd7cad5d9e884 Mon Sep 17 00:00:00 2001 From: Markus Lehtonen Date: Mon, 26 Apr 2021 14:23:47 +0300 Subject: [PATCH] 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 --- libcontainer/intelrdt/intelrdt_test.go | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/libcontainer/intelrdt/intelrdt_test.go b/libcontainer/intelrdt/intelrdt_test.go index f1cff8f5474..2525789690f 100644 --- a/libcontainer/intelrdt/intelrdt_test.go +++ b/libcontainer/intelrdt/intelrdt_test.go @@ -12,10 +12,6 @@ import ( ) func TestIntelRdtSetL3CacheSchema(t *testing.T) { - if !IsCATEnabled() { - return - } - helper := NewIntelRdtTestUtil(t) const ( @@ -46,10 +42,6 @@ func TestIntelRdtSetL3CacheSchema(t *testing.T) { } func TestIntelRdtSetMemBwSchema(t *testing.T) { - if !IsMBAEnabled() { - return - } - helper := NewIntelRdtTestUtil(t) const ( @@ -80,10 +72,6 @@ func TestIntelRdtSetMemBwSchema(t *testing.T) { } func TestIntelRdtSetMemBwScSchema(t *testing.T) { - if !IsMBAScEnabled() { - return - } - helper := NewIntelRdtTestUtil(t) const (