[18/38] tests/TestSuite_metering_and_policing.py: adapt to support both meson and makefile build
Commit Message
Zhou, JunX W
Sept. 8, 2020, 7:18 a.m. UTC
From: Zhou jun <junx.w.zhou@intel.com> Signed-off-by: Zhou jun <junx.w.zhou@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)