From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 423DFA0540; Mon, 20 Jul 2020 08:59:10 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 35D261BEDE; Mon, 20 Jul 2020 08:59:10 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by dpdk.org (Postfix) with ESMTP id 4102F1BED7 for ; Mon, 20 Jul 2020 08:59:08 +0200 (CEST) IronPort-SDR: yA2aPdRd8DDaqskW72hAtx84iIkk32ZQnc+HITDLIHhSLs6skmzHsMGW91+LBj/FRHJzCQdnGl Bq4M1eTFZeAA== X-IronPort-AV: E=McAfee;i="6000,8403,9687"; a="137346347" X-IronPort-AV: E=Sophos;i="5.75,374,1589266800"; d="scan'208";a="137346347" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Jul 2020 23:59:07 -0700 IronPort-SDR: 4SVyK+fY60HI5lWfSqFmojMB9O/jrkEWWhAKFHL24/A16f4kUzGo/KCEjnU+jWQgCKBaDQZ5Qp /MvDB6nAOaNA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,374,1589266800"; d="scan'208";a="487627824" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by fmsmga005.fm.intel.com with ESMTP; 19 Jul 2020 23:59:07 -0700 Received: from fmsmsx114.amr.corp.intel.com (10.18.116.8) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.439.0; Sun, 19 Jul 2020 23:59:07 -0700 Received: from shsmsx107.ccr.corp.intel.com (10.239.4.96) by FMSMSX114.amr.corp.intel.com (10.18.116.8) with Microsoft SMTP Server (TLS) id 14.3.439.0; Sun, 19 Jul 2020 23:59:06 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.22]) by SHSMSX107.ccr.corp.intel.com ([169.254.9.32]) with mapi id 14.03.0439.000; Mon, 20 Jul 2020 14:59:03 +0800 From: "Tu, Lijuan" To: "Mo, YufengX" , "dts@dpdk.org" , "Yao, Lei A" CC: "Mo, YufengX" Thread-Topic: [dts] [PATCH V1 1/1] nics/net_device: resolve color string Thread-Index: AQHWU0++kzn29AekD0em+wIHpN9T1akQH9Bg Date: Mon, 20 Jul 2020 06:59:02 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BC821CA@SHSMSX101.ccr.corp.intel.com> References: <20200706044059.24887-1-yufengx.mo@intel.com> <20200706044059.24887-2-yufengx.mo@intel.com> In-Reply-To: <20200706044059.24887-2-yufengx.mo@intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.2.0.6 dlp-reaction: no-action x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="iso-2022-jp" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dts] [PATCH V1 1/1] nics/net_device: resolve color string X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dts-bounces@dpdk.org Sender: "dts" Applied, thanks > -----Original Message----- > From: dts On Behalf Of yufengmx > Sent: 2020=1B$BG/=1B(B7=1B$B7n=1B(B6=1B$BF|=1B(B 12:41 > To: dts@dpdk.org; Yao, Lei A > Cc: Mo, YufengX > Subject: [dts] [PATCH V1 1/1] nics/net_device: resolve color string >=20 >=20 > resolve color string. >=20 > Signed-off-by: yufengmx > --- > nics/net_device.py | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/nics/net_device.py b/nics/net_device.py index 2dc0fb1..a08c0= da > 100644 > --- a/nics/net_device.py > +++ b/nics/net_device.py > @@ -609,7 +609,7 @@ class NetDevice(object): > else: > try: > virtfns =3D self.__send_expect( > - "ls -d /sys/bus/pci/devices/%s\:%s\:%s/virtfn*" % > + "ls --color=3Dnever -d > + /sys/bus/pci/devices/%s\:%s\:%s/virtfn*" % > (domain_id, bus_id, devfun_id), "# ") > for virtfn in virtfns.split(): > vf_uevent =3D self.__send_expect( > -- > 2.21.0