From: Song Jiale <songx.jiale@intel.com>
To: dts@dpdk.org
Cc: Song Jiale <songx.jiale@intel.com>
Subject: [dts] [PATCH V1 2/2] tests/ice_dcf_switch_filter_pppoe: optimization script
Date: Wed, 14 Sep 2022 10:33:26 +0000 [thread overview]
Message-ID: <20220914103326.29999-2-songx.jiale@intel.com> (raw)
In-Reply-To: <20220914103326.29999-1-songx.jiale@intel.com>
1.the "testpmd_status" is the wrong status when launch app timeout,
it will affect other cases test. therefore, changing the status first
and then starting the app can solve this issue.
2.add timeout.
Signed-off-by: Song Jiale <songx.jiale@intel.com>
---
tests/TestSuite_ice_dcf_switch_filter_pppoe.py | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/tests/TestSuite_ice_dcf_switch_filter_pppoe.py b/tests/TestSuite_ice_dcf_switch_filter_pppoe.py
index 7b974e01..d8c8cb42 100644
--- a/tests/TestSuite_ice_dcf_switch_filter_pppoe.py
+++ b/tests/TestSuite_ice_dcf_switch_filter_pppoe.py
@@ -867,8 +867,7 @@ class ICEDCFSwitchFilterPPPOETest(TestCase):
time.sleep(5)
def reload_ice(self):
- self.dut.send_expect("rmmod ice", "# ", 15)
- self.dut.send_expect("modprobe ice", "# ", 15)
+ self.dut.send_expect("rmmod ice && modprobe ice", "# ", 60)
def set_up(self):
"""
@@ -896,8 +895,8 @@ class ICEDCFSwitchFilterPPPOETest(TestCase):
launch testpmd with the command
"""
command = self.create_testpmd_command()
- out = self.dut.send_expect(command, "testpmd> ", 15)
self.testpmd_status = "running"
+ self.dut.send_expect(command, "testpmd> ", 30)
self.dut.send_expect("set portlist 1", "testpmd> ", 15)
self.dut.send_expect("set fwd rxonly", "testpmd> ", 15)
self.dut.send_expect("set verbose 1", "testpmd> ", 15)
--
2.17.1
prev parent reply other threads:[~2022-09-14 2:19 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-14 10:33 [dts] [PATCH V1 1/2] tests/ice_dcf_switch_filter_gtpu: " Song Jiale
2022-09-14 10:33 ` Song Jiale [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=20220914103326.29999-2-songx.jiale@intel.com \
--to=songx.jiale@intel.com \
--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).