test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH V1] tests/TestSuite_packet_capture: adapt meson build
@ 2020-11-02  9:40 Zhou, Jun
  2020-11-02  9:40 ` Zhou, JunX W
  2020-11-03  4:30 ` Tu, Lijuan
  0 siblings, 2 replies; 3+ messages in thread
From: Zhou, Jun @ 2020-11-02  9:40 UTC (permalink / raw)
  To: dts; +Cc: Zhou, Jun, Zhou

adapt meson build

Signed-off-by: Zhou, Jun <junx.w.zhou@intel.com>
---
 tests/TestSuite_packet_capture.py | 12 ++----------
 1 file changed, 2 insertions(+), 10 deletions(-)

diff --git a/tests/TestSuite_packet_capture.py b/tests/TestSuite_packet_capture.py
index 9c2a3097..4b980558 100644
--- a/tests/TestSuite_packet_capture.py
+++ b/tests/TestSuite_packet_capture.py
@@ -825,17 +825,9 @@ class TestPacketCapture(TestCase):
             self.dut.skip_setup = False
             self.dut.build_install_dpdk(self.target)
         # secondary process (dpdk-pdump)
-        self.pdump_dir = self.target_dir + os.sep + \
-            "%s/build/app/pdump/" % self.target
-        cmd = "ls {0} -F | grep '*'".format(self.pdump_dir)
-        exe_files = self.dut.alt_session.send_expect(cmd, "# ").splitlines()
-        if len(exe_files) == 1:
-            self.tool_name = exe_files[0][:-1]
-        else:
-            self.verify(False, "tool name exception !")
+        self.dut_dpdk_pdump_dir = self.dut.apps_name['pdump']
+        self.tool_name = self.dut_dpdk_pdump_dir.split('/')[-1]
         self.session_ex = self.dut.new_session(self.tool_name)
-        self.dut_dpdk_pdump_dir = self.target_dir + os.sep + \
-            "%s/app/%s" % (self.target, self.tool_name)
         self.dpdk_pdump = self.dut_dpdk_pdump_dir + \
             " -v --file-prefix=test -- --pdump "
         self.send_pcap = os.sep.join([self.pdump_log, "scapy_%s_%s_%d.pcap"])
-- 
2.17.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-11-03  4:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-02  9:40 [dts] [PATCH V1] tests/TestSuite_packet_capture: adapt meson build Zhou, Jun
2020-11-02  9:40 ` Zhou, JunX W
2020-11-03  4:30 ` Tu, Lijuan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).