From: "Tu, Lijuan" <lijuan.tu@intel.com>
To: "Ma, LihongX" <lihongx.ma@intel.com>, "dts@dpdk.org" <dts@dpdk.org>
Cc: "Ma, LihongX" <lihongx.ma@intel.com>
Subject: Re: [dts] [PATCH V2] tests: delete cmd about cd to absolute path
Date: Wed, 27 Nov 2019 09:02:46 +0000 [thread overview]
Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BB695FF@SHSMSX101.ccr.corp.intel.com> (raw)
In-Reply-To: <1574361287-4194-1-git-send-email-lihongx.ma@intel.com>
Applied, thanks
> -----Original Message-----
> From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of lihong
> Sent: Friday, November 22, 2019 2:35 AM
> To: dts@dpdk.org
> Cc: Ma, LihongX <lihongx.ma@intel.com>
> Subject: [dts] [PATCH V2] tests: delete cmd about cd to absolute path
>
> Signed-off-by: lihong <lihongx.ma@intel.com>
> ---
> tests/TestSuite_multiprocess.py | 1 -
> tests/TestSuite_packet_capture.py | 4 +---
> tests/TestSuite_unit_tests_loopback.py | 18 +++++++++---------
> tests/TestSuite_vhost_user_live_migration.py | 1 -
> 4 files changed, 10 insertions(+), 14 deletions(-)
>
> diff --git a/tests/TestSuite_multiprocess.py b/tests/TestSuite_multiprocess.py
> index 384872c..aa8bfde 100644
> --- a/tests/TestSuite_multiprocess.py
> +++ b/tests/TestSuite_multiprocess.py
> @@ -69,7 +69,6 @@ class TestMultiprocess(TestCase):
> executions.append({'nprocs': 4, 'cores': '1S/2C/2T', 'pps': 0})
> executions.append({'nprocs': 4, 'cores': '1S/4C/1T', 'pps': 0})
> executions.append({'nprocs': 8, 'cores': '1S/4C/2T', 'pps': 0})
> - self.dut.alt_session.send_expect("cd dpdk", "# ", 5)
>
> # start new session to run secondary
> self.session_secondary = self.dut.new_session() diff --git
> a/tests/TestSuite_packet_capture.py b/tests/TestSuite_packet_capture.py
> index fdaa0d0..b1fbff4 100644
> --- a/tests/TestSuite_packet_capture.py
> +++ b/tests/TestSuite_packet_capture.py
> @@ -500,9 +500,7 @@ class TestPacketCapture(TestCase):
> if not self.is_dut_on_tester:
> self.tester.alt_session.send_expect(
> "rm -fr {0}/*".format(self.pdump_log), "# ", 20)
> - cmd = ';'.join([
> - "cd %s" % self.target_dir,
> - self.dpdk_pdump + " '%s' >/dev/null 2>&1 &" % (option[0])])
> + cmd = self.dpdk_pdump + " '%s' >/dev/null 2>&1 &" % (option[0])
> self.session_ex.send_expect(cmd, "# ", 15)
> time.sleep(6)
>
> diff --git a/tests/TestSuite_unit_tests_loopback.py
> b/tests/TestSuite_unit_tests_loopback.py
> index 50533a6..b52b1c2 100644
> --- a/tests/TestSuite_unit_tests_loopback.py
> +++ b/tests/TestSuite_unit_tests_loopback.py
> @@ -91,9 +91,9 @@ class TestUnitTestsLoopback(TestCase):
> Run pmd stream control mode burst test case.
> """
> self.dut.send_expect("sed -i -e 's/lpbk_mode = 0/lpbk_mode = 1/'
> app/test/test_pmd_perf.c", "# ", 30)
> - self.dut.send_expect("cd app/test", "# ")
> - self.dut.send_expect("make -j", "# ", 120)
> - self.dut.send_expect("cd /root/dpdk", "# ")
> + out = self.dut.build_dpdk_apps('app/test')
> + self.verify("Error" not in out, "Compilation error")
> + self.verify("No such" not in out, "Compilation error")
>
> self.tester.send_expect("rm -rf ./getPackageByTcpdump.cap", "#")
> self.tester.send_expect("tcpdump -i %s -w ./getPackageByTcpdump.cap
> 2> /dev/null& " % self.tester_itf, "#") @@ -112,9 +112,9 @@ class
> TestUnitTestsLoopback(TestCase):
> Run pmd stream control mode burst test case.
> """
> self.dut.send_expect("sed -i -e 's/lpbk_mode = 1/lpbk_mode = 0/'
> app/test/test_pmd_perf.c", "# ", 30)
> - self.dut.send_expect("cd app/test", "# ")
> - self.dut.send_expect("make -j", "# ", 120)
> - self.dut.send_expect("cd /root/dpdk", "# ")
> + out = self.dut.build_dpdk_apps('app/test')
> + self.verify("Error" not in out, "Compilation error")
> + self.verify("No such" not in out, "Compilation error")
>
> self.tester.send_expect("rm -rf ./getPackageByTcpdump.cap", "#")
> self.tester.send_expect("tcpdump -i %s -w ./getPackageByTcpdump.cap
> 2> /dev/null& " % self.tester_itf, "#") @@ -139,7 +139,7 @@ class
> TestUnitTestsLoopback(TestCase):
> """
> self.dut.send_expect("sed -i -e 's/lpbk_mode = 0/lpbk_mode = 1/'
> app/test/test_pmd_perf.c", "# ", 30)
> self.dut.send_expect("sed -i -e 's/#define MAX_TRAFFIC_BURST
> 32/#define MAX_TRAFFIC_BURST %s/' app/test/test_pmd_perf.c" %
> self.max_traffic_burst, "# ", 30)
> - self.dut.send_expect("cd app/test", "# ")
> - self.dut.send_expect("make -j", "# ", 120)
> - self.dut.send_expect("cd /root/dpdk", "# ")
> + out = self.dut.build_dpdk_apps('app/test')
> + self.verify("Error" not in out, "Compilation error")
> + self.verify("No such" not in out, "Compilation error")
> self.dut.kill_all()
> diff --git a/tests/TestSuite_vhost_user_live_migration.py
> b/tests/TestSuite_vhost_user_live_migration.py
> index 0b1abcc..521f3f5 100644
> --- a/tests/TestSuite_vhost_user_live_migration.py
> +++ b/tests/TestSuite_vhost_user_live_migration.py
> @@ -298,7 +298,6 @@ class TestVhostUserLiveMigration(TestCase):
> vm_dut.send_expect('screen -S %s' % self.screen_name, '# ', 120)
>
> vm_testpmd = self.target + '/app/testpmd -c 0x3 -n 4 -- -i'
> - vm_dut.send_expect('cd %s' % self.base_dir, "# ")
> vm_dut.send_expect(vm_testpmd, 'testpmd> ', 120)
> vm_dut.send_expect('set fwd rxonly', 'testpmd> ', 30)
> vm_dut.send_expect('set promisc all off', 'testpmd> ', 30)
> --
> 2.7.4
prev parent reply other threads:[~2019-11-27 9:02 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-11-21 18:34 lihong
2019-11-27 9:02 ` Tu, Lijuan [this message]
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=8CE3E05A3F976642AAB0F4675D0AD20E0BB695FF@SHSMSX101.ccr.corp.intel.com \
--to=lijuan.tu@intel.com \
--cc=dts@dpdk.org \
--cc=lihongx.ma@intel.com \
/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).