summaryrefslogtreecommitdiffstats
path: root/test/asf/test_perfmon.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/asf/test_perfmon.py')
-rw-r--r--test/asf/test_perfmon.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/asf/test_perfmon.py b/test/asf/test_perfmon.py
index 448a6012c20..611746ff203 100644
--- a/test/asf/test_perfmon.py
+++ b/test/asf/test_perfmon.py
@@ -1,7 +1,13 @@
from asfframework import VppAsfTestCase, VppTestRunner
+from vpp_qemu_utils import can_create_namespaces
+from config import config
import unittest
+@unittest.skipIf(
+ not can_create_namespaces("perfmon_chk"), "Test is not running with root privileges"
+)
+@unittest.skipIf("perfmon" in config.excluded_plugins, "Exclude Perfmon plugin tests")
class TestPerfmon(VppAsfTestCase):
"""Simple perfmon test"""