[dts] [PATCH V1]fix yocto os can't init core list

Liu, Yong yong.liu at intel.com
Wed Dec 2 07:46:55 CET 2015


Hi Huilong, 
Option "--color=never" will fix some wrong output in Ubuntu OS. Before remove it, please find another way to disable color.

> -----Original Message-----
> From: dts [mailto:dts-bounces at dpdk.org] On Behalf Of xu,huilong
> Sent: Wednesday, December 02, 2015 2:28 PM
> To: dts at dpdk.org
> Subject: [dts] [PATCH V1]fix yocto os can't init core list
> 
> yocto not support --color=never parameter.
> 
> Signed-off-by: xu,huilong <huilongx.xu at intel.com>
> ---
>  framework/crb.py | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/framework/crb.py b/framework/crb.py
> index 3c158ec..baaff2a 100644
> --- a/framework/crb.py
> +++ b/framework/crb.py
> @@ -462,7 +462,7 @@ class Crb(object):
> 
>          cpuinfo = \
>              self.send_expect(
> -                "grep --color=never \"processor\\|physical id\\|core
> id\\|^$\" /proc/cpuinfo",
> +                r'grep "processor\|physical id\|core id\|^$"
> /proc/cpuinfo',
>                  "#", alt_session=True)
>          cpuinfo = cpuinfo.split('\r\n\r\n')
>          # haswell cpu on cottonwood core id not correct
> --
> 1.9.3



More information about the dts mailing list