[dts] [PATCH 1/2] framework: modify the method get_session_before
Xiao, QimaiX
qimaix.xiao at intel.com
Fri Mar 20 06:07:36 CET 2020
Tested-by: Xiao, QimaiX <qimaix.xiao at intel.com>
Regards,
Xiao Qimai
> -----Original Message-----
> From: dts [mailto:dts-bounces at dpdk.org] On Behalf Of xinfengx
> Sent: Sunday, March 8, 2020 11:23 PM
> To: dts at dpdk.org
> Cc: Zhao, XinfengX <xinfengx.zhao at intel.com>
> Subject: [dts] [PATCH 1/2] framework: modify the method
> get_session_before
>
> Signed-off-by: xinfengx <xinfengx.zhao at intel.com>
> ---
> framework/ssh_pexpect.py | 9 ++-------
> 1 file changed, 2 insertions(+), 7 deletions(-)
>
> diff --git a/framework/ssh_pexpect.py b/framework/ssh_pexpect.py index
> 8889016..e851cbf 100644
> --- a/framework/ssh_pexpect.py
> +++ b/framework/ssh_pexpect.py
> @@ -109,16 +109,11 @@ class SSHPexpect:
> """
> ignore_keyintr()
> self.session.PROMPT = self.magic_prompt
> - try:
> - self.session.prompt(timeout)
> - except Exception as e:
> - pass
> -
> + output = self.session.try_read_prompt(timeout)
> aware_keyintr()
> - before = self.get_output_all()
> self.__flush()
>
> - return before
> + return output
>
> def __flush(self):
> """
> --
> 2.17.1
More information about the dts
mailing list