From: "Zhou, Jun" <junx.w.zhou@intel.com>
To: dts@dpdk.org
Cc: "Zhou, Jun" <junx.w.zhou@intel.com>, Zhou@dpdk.org
Subject: [dts] [PATCH V1] tests/TestSuite_packet_capture: adapt meson build
Date: Mon, 2 Nov 2020 17:40:16 +0800 [thread overview]
Message-ID: <20201102094016.14389-1-junx.w.zhou@intel.com> (raw)
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
next reply other threads:[~2020-11-02 9:38 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-02 9:40 Zhou, Jun [this message]
2020-11-02 9:40 ` Zhou, JunX W
2020-11-03 4:30 ` Tu, Lijuan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20201102094016.14389-1-junx.w.zhou@intel.com \
--to=junx.w.zhou@intel.com \
--cc=Zhou@dpdk.org \
--cc=dts@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).