[dts] [PATCH] tests_ftag: fix expected output time when striping port glort ID

Liu, Yong yong.liu at intel.com
Thu Aug 18 09:42:55 CEST 2016


Thanks, applied.

> -----Original Message-----
> From: xueqin.lin [mailto:xlin15 at ecsmtp.sh.intel.com]
> Sent: Thursday, August 18, 2016 2:16 PM
> To: Liu, Yong; dts at dpdk.org
> Cc: Lin, Xueqin
> Subject: [dts][PATCH] tests_ftag: fix expected output time when striping
> port glort ID
> 
> From: Xueqin Lin <xueqin.lin at intel.com>
> 
> It is impossible to wait some long time for expected output, just fix as
> default value.
> 
> 
> diff --git a/nics/rrc.py b/nics/rrc.py
> index 62dc8d2..a6ac175 100644
> --- a/nics/rrc.py
> +++ b/nics/rrc.py
> @@ -259,7 +259,7 @@ class RedRockCanyou(NetDevice):
>              return None
>          else:
>              port_value = res.group(2)
> -        out = self.ctrl_crb.send_expect("show stacking logical-port all",
> "<0>%",10000)
> +        out = self.ctrl_crb.send_expect("show stacking logical-port all",
> "<0>%")
>          pattern = r"([0-9a-z]{6})+(\s)+(%s)+" %port_value
>          s = re.compile(pattern)
>          res = s.search(out)
> --
> 2.5.5



More information about the dts mailing list