[dts][PATCH V2] tests/multiprocess modify the regular expression

Tu, Lijuan lijuan.tu at intel.com
Fri Sep 2 03:36:07 CEST 2022


> -----Original Message-----
> From: Dukai Yuan <dukaix.yuan at intel.com>
> Sent: Tuesday, August 30, 2022 4:13 PM
> To: dts at dpdk.org
> Cc: Yuan, DukaiX <dukaix.yuan at intel.com>
> Subject: [dts][PATCH V2] tests/multiprocess modify the regular expression
> 
> Modify re.search to re.findall to get all the list.
> 
> Signed-off-by: Dukai Yuan <dukaix.yuan at intel.com>
> ---
>  tests/TestSuite_multiprocess.py | 10 +++++++---
>  1 file changed, 7 insertions(+), 3 deletions(-)
> 
> diff --git a/tests/TestSuite_multiprocess.py b/tests/TestSuite_multiprocess.py
> index da382a41..3d408ea9 100644
> --- a/tests/TestSuite_multiprocess.py
> +++ b/tests/TestSuite_multiprocess.py
> @@ -175,6 +175,7 @@ class TestMultiprocess(TestCase):
>                  pktnum=pkt_num,
>                  dstmac="00:11:22:33:44:55",
>              )
> +        time.sleep(3)

It's not a good idea to wait 3 second, another option is to wait for the specific event which it requires.


More information about the dts mailing list