File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
test/e2e/performanceprofile/functests/13_llc Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ import (
4141 testclient "github.com/openshift/cluster-node-tuning-operator/test/e2e/performanceprofile/functests/utils/client"
4242 "github.com/openshift/cluster-node-tuning-operator/test/e2e/performanceprofile/functests/utils/deployments"
4343 "github.com/openshift/cluster-node-tuning-operator/test/e2e/performanceprofile/functests/utils/images"
44+ "github.com/openshift/cluster-node-tuning-operator/test/e2e/performanceprofile/functests/utils/infrastructure"
4445 "github.com/openshift/cluster-node-tuning-operator/test/e2e/performanceprofile/functests/utils/label"
4546 testlog "github.com/openshift/cluster-node-tuning-operator/test/e2e/performanceprofile/functests/utils/log"
4647 "github.com/openshift/cluster-node-tuning-operator/test/e2e/performanceprofile/functests/utils/mcps"
@@ -116,7 +117,13 @@ var _ = Describe("[rfe_id:77446] LLC-aware cpu pinning", Label(string(label.Open
116117 if len (workerRTNodes ) < 1 {
117118 Skip ("need at least a worker node" )
118119 }
119-
120+ for _ , cnfnode := range workerRTNodes {
121+ isVM , err := infrastructure .IsVM (context .TODO (), & cnfnode )
122+ Expect (err ).ToNot (HaveOccurred (), "Failed to detect if the node is based on VM" )
123+ if isVM {
124+ Skip ("System is Virtual Machine - LLC tests are applicable only on Baremetal" )
125+ }
126+ }
120127 perfProfile , err = profiles .GetByNodeLabels (testutils .NodeSelectorLabels )
121128 Expect (err ).ToNot (HaveOccurred ())
122129 initialProfile = perfProfile .DeepCopy ()
You can’t perform that action at this time.
0 commit comments