[dts] [dts 18/38] tests/TestSuite_metering_and_policing.py: adapt to support both meson and makefile build
Zhou, Jun
junx.w.zhou at intel.com
Tue Sep 8 09:18:05 CEST 2020
From: Zhou jun <junx.w.zhou at intel.com>
Signed-off-by: Zhou jun <junx.w.zhou at intel.com>
---
tests/TestSuite_metering_and_policing.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tests/TestSuite_metering_and_policing.py b/tests/TestSuite_metering_and_policing.py
index 73bcdbb..c481d45 100644
--- a/tests/TestSuite_metering_and_policing.py
+++ b/tests/TestSuite_metering_and_policing.py
@@ -44,6 +44,7 @@ from settings import HEADER_SIZE
from dut import Dut
from pmd_output import PmdOutput
+
class TestMeteringAndPolicing(TestCase):
scapyCmds = []
@@ -154,7 +155,7 @@ class TestMeteringAndPolicing(TestCase):
portmask = "0x10"
Corelist = "0x1f"
Servicecorelist = "0x10"
- self.path = "./%s/app/testpmd" % self.target
+ self.path = self.dut.apps_name['test-pmd']
cmd = self.path + " -c %s -s %s -n %d --vdev 'net_softnic0,firmware=%s' \
-- -i --rxq=%d --txq=%d --portmask=%s --disable-rss" \
% (Corelist, Servicecorelist, self.dut.get_memory_channels(), filename, self.port_id, self.port_id, portmask)
--
1.8.3.1
More information about the dts
mailing list