From: Song Jiale <songx.jiale@intel.com>
To: dts@dpdk.org
Cc: Song Jiale <songx.jiale@intel.com>
Subject: [dts] [PATCH V1] tests/ice_ecpri: optimize script
Date: Mon, 30 Jan 2023 11:24:28 +0000 [thread overview]
Message-ID: <20230130112428.4011515-1-songx.jiale@intel.com> (raw)
there may be logs containing "#" in dmesg information, this "#" is not
the expected value, which will affect the subsequent tests and cause the
case to fail randomly.
Signed-off-by: Song Jiale <songx.jiale@intel.com>
---
tests/TestSuite_ice_ecpri.py | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/tests/TestSuite_ice_ecpri.py b/tests/TestSuite_ice_ecpri.py
index 4b60478b..580641e5 100644
--- a/tests/TestSuite_ice_ecpri.py
+++ b/tests/TestSuite_ice_ecpri.py
@@ -342,7 +342,7 @@ class TestICEEcpri(TestCase):
self.pmd_output.execute_cmd(
"port config 0 udp_tunnel_port add ecpri {}".format(self.right_ecpri)
)
- self.new_session.send_expect("dmesg -c", "#")
+ self.new_session.send_expect("dmesg -c", "[~|~\]]# ")
self.new_session.send_expect(
"ip link add vx0 type vxlan id 100 local 1.1.1.1 remote "
"2.2.2.2 dev {} dstport 0x1234".format(self.pf_interface),
@@ -350,19 +350,19 @@ class TestICEEcpri(TestCase):
)
self.new_session.send_expect("ifconfig vx0 up", "#")
self.new_session.send_expect("ifconfig vx0 down", "#")
- out = self.new_session.send_expect("dmesg", "#")
+ out = self.new_session.send_expect("dmesg", "[~|~\]]# ")
self.verify(
"Cannot config tunnel, the capability is used by DCF" in out,
"port can used by another thread!",
)
# delete eCPRI port config and test
- self.new_session.send_expect("dmesg -c", "#")
+ self.new_session.send_expect("dmesg -c", "[~|~\]]# ")
self.pmd_output.execute_cmd(
"port config 0 udp_tunnel_port rm ecpri {}".format(self.right_ecpri)
)
self.new_session.send_expect("ifconfig vx0 up", "#")
self.new_session.send_expect("ifconfig vx0 down", "# ")
- out = self.new_session.send_expect("dmesg", "#")
+ out = self.new_session.send_expect("dmesg", "[~|~\]]# ")
self.verify(
"Cannot config tunnel, the capability is used by DCF" not in out,
"port can't used by another thread!",
--
2.25.1
next reply other threads:[~2023-01-30 3:27 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-30 11:24 Song Jiale [this message]
2023-03-07 3:54 ` lijuan.tu
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=20230130112428.4011515-1-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).