[dts] [dts 06/28] tests/TestSuite_ipfrag:Modify the hard coded app parameter to call the platform interface
Zhou Jun
junx.w.zhou at intel.com
Tue Dec 8 11:06:05 CET 2020
Signed-off-by: Zhou Jun <junx.w.zhou at intel.com>
---
tests/TestSuite_ipfrag.py | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/tests/TestSuite_ipfrag.py b/tests/TestSuite_ipfrag.py
index ba64e168..84725dad 100644
--- a/tests/TestSuite_ipfrag.py
+++ b/tests/TestSuite_ipfrag.py
@@ -124,19 +124,16 @@ class TestIpfrag(TestCase):
self.verify("No such file" not in out, "compilation error 2")
cores = self.dut.get_core_list("1S/1C/2T")
+ self.eal_para = self.dut.create_eal_parameters(cores='1S/1C/2T')
coremask = utils.create_mask(cores)
portmask = utils.create_mask([P0, P1])
numPortThread = len([P0, P1]) / len(cores)
result = True
errString = ''
- eal_param = ""
- for i in [P0, P1]:
- eal_param += " -w %s" % self.dut.ports_info[i]['pci']
# run ipv4_frag
self.app_ip_fragmentation_path = self.dut.apps_name['ip_fragmentation']
- self.dut.send_expect("%s -c %s -n %d %s -- -p %s -q %s" % (self.app_ip_fragmentation_path, coremask,
- self.dut.get_memory_channels(), eal_param, portmask,
+ self.dut.send_expect("%s %s -- -p %s -q %s" % (self.app_ip_fragmentation_path, self.eal_para, portmask,
int(numPortThread)), "Link [Uu]p", 120)
time.sleep(2)
--
2.17.1
More information about the dts
mailing list