test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH] framework/tester closing scapy session raise exception
@ 2020-10-21 18:11 Thinh Tran
  2020-10-22  8:12 ` Ma, LihongX
  0 siblings, 1 reply; 2+ messages in thread
From: Thinh Tran @ 2020-10-21 18:11 UTC (permalink / raw)
  To: dts; +Cc: thinhtr

  Sending control "^c" during  closing the scapy sessions raised the time-
  out exception for expecting scapy prompt ">>> " return causing the failure
  during setup.
  Simply sending "quit" to exit scapy gratefully instead.

Signed-off-by: Thinh Tran <thinhtr@linux.vnet.ibm.com>
---
 framework/tester.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/framework/tester.py b/framework/tester.py
index ca179b2..a7a68b5 100644
--- a/framework/tester.py
+++ b/framework/tester.py
@@ -868,8 +868,7 @@ class Tester(Crb):
         if self.scapy_sessions_li:
             for i in self.scapy_sessions_li:
                 if i.session.isalive():
-                    i.session.send_expect("^c", ">>> ", timeout=2)
-                    i.session.send_expect("^d", "#", timeout=2)
+                    i.session.send_expect("quit", "# ", timeout=2)
                     i.session.close()
             self.scapy_sessions_li.clear()
 
-- 
2.17.0


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [dts] [PATCH] framework/tester closing scapy session raise exception
  2020-10-21 18:11 [dts] [PATCH] framework/tester closing scapy session raise exception Thinh Tran
@ 2020-10-22  8:12 ` Ma, LihongX
  0 siblings, 0 replies; 2+ messages in thread
From: Ma, LihongX @ 2020-10-22  8:12 UTC (permalink / raw)
  To: Thinh Tran, dts

> -----Original Message-----
> From: dts <dts-bounces@dpdk.org> On Behalf Of Thinh Tran
> Sent: Thursday, October 22, 2020 2:12 AM
> To: dts@dpdk.org
> Cc: thinhtr@linux.vnet.ibm.com
> Subject: [dts] [PATCH] framework/tester closing scapy session raise
> exception
> 
>   Sending control "^c" during  closing the scapy sessions raised the time-
>   out exception for expecting scapy prompt ">>> " return causing the
> failure
>   during setup.
>   Simply sending "quit" to exit scapy gratefully instead.
> 
> Signed-off-by: Thinh Tran <thinhtr@linux.vnet.ibm.com>
> ---
>  framework/tester.py | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
> 
> diff --git a/framework/tester.py b/framework/tester.py index
> ca179b2..a7a68b5 100644
> --- a/framework/tester.py
> +++ b/framework/tester.py
> @@ -868,8 +868,7 @@ class Tester(Crb):
>          if self.scapy_sessions_li:
>              for i in self.scapy_sessions_li:
>                  if i.session.isalive():
> -                    i.session.send_expect("^c", ">>> ", timeout=2)
> -                    i.session.send_expect("^d", "#", timeout=2)
> +                    i.session.send_expect("quit", "# ", timeout=2)
>                      i.session.close()
>              self.scapy_sessions_li.clear()
> 
> --
> 2.17.0

The session is scapy session that start the scapy, so can not use the command quit, should use "quit()"

Regards,
Ma,lihong

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-10-22  8:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-21 18:11 [dts] [PATCH] framework/tester closing scapy session raise exception Thinh Tran
2020-10-22  8:12 ` Ma, LihongX

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).