test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts]  [PATCH V1]fix yocto os can't init core list
@ 2015-12-02  6:27 xu,huilong
  2015-12-02  6:46 ` Liu, Yong
  0 siblings, 1 reply; 2+ messages in thread
From: xu,huilong @ 2015-12-02  6:27 UTC (permalink / raw)
  To: dts

yocto not support --color=never parameter.

Signed-off-by: xu,huilong <huilongx.xu@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

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

* Re: [dts] [PATCH V1]fix yocto os can't init core list
  2015-12-02  6:27 [dts] [PATCH V1]fix yocto os can't init core list xu,huilong
@ 2015-12-02  6:46 ` Liu, Yong
  0 siblings, 0 replies; 2+ messages in thread
From: Liu, Yong @ 2015-12-02  6:46 UTC (permalink / raw)
  To: Xu, HuilongX, dts

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@dpdk.org] On Behalf Of xu,huilong
> Sent: Wednesday, December 02, 2015 2:28 PM
> To: dts@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@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

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

end of thread, other threads:[~2015-12-02  6:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-12-02  6:27 [dts] [PATCH V1]fix yocto os can't init core list xu,huilong
2015-12-02  6:46 ` Liu, Yong

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