[dts] [dts 20/28] tests/TestSuite_ptpclient:Modify the hard coded app parameter to call the platform interface
Zhou Jun
junx.w.zhou at intel.com
Tue Dec 8 11:06:19 CET 2020
Signed-off-by: Zhou Jun <junx.w.zhou at intel.com>
---
tests/TestSuite_ptpclient.py | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/tests/TestSuite_ptpclient.py b/tests/TestSuite_ptpclient.py
index 07bfde68..858d5f46 100644
--- a/tests/TestSuite_ptpclient.py
+++ b/tests/TestSuite_ptpclient.py
@@ -64,6 +64,7 @@ class TestPtpClient(TestCase):
self.app_name = self.app_ptpclient_path[self.app_ptpclient_path.rfind('/')+1:]
port = self.tester.get_local_port(dutPorts[0])
self.itf0 = self.tester.get_interface(port)
+ self.eal_para = self.dut.create_eal_parameters()
def set_up(self):
"""
@@ -99,7 +100,7 @@ class TestPtpClient(TestCase):
self.tester.send_expect("ptp4l -i %s -2 -m -S &" % self.itf0, "ptp4l")
# run ptpclient on the background
- self.dut.send_expect("./%s -c f -n 3 -- -T 0 -p 0x1 " % self.app_ptpclient_path + "&",
+ self.dut.send_expect("./%s %s -- -T 0 -p 0x1 " % (self.app_ptpclient_path, self.eal_para) + "&",
"Delta between master and slave", 60)
time.sleep(3)
out = self.dut.get_session_output()
@@ -130,7 +131,7 @@ class TestPtpClient(TestCase):
self.tester.send_expect("ptp4l -i %s -2 -m -S &" % self.itf0, "ptp4l")
# run ptpclient on the background
- self.dut.send_expect("./%s -c f -n 3 -- -T 1 -p 0x1" % self.app_ptpclient_path + "&",
+ self.dut.send_expect("./%s %s -- -T 1 -p 0x1" % (self.app_ptpclient_path, self.eal_para) + "&",
"Delta between master and slave", 60)
time.sleep(3)
out = self.dut.get_session_output()
--
2.17.1
More information about the dts
mailing list