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 8D90FA04DD; Thu, 2 Jan 2020 07:03:48 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 40A181BFA3; Thu, 2 Jan 2020 07:03:48 +0100 (CET) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id AA6E41BE3D for ; Thu, 2 Jan 2020 07:03:46 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 01 Jan 2020 22:03:44 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.69,385,1571727600"; d="scan'208";a="221293649" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by orsmga006.jf.intel.com with ESMTP; 01 Jan 2020 22:03:45 -0800 Received: from fmsmsx154.amr.corp.intel.com (10.18.116.70) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 1 Jan 2020 22:03:44 -0800 Received: from shsmsx151.ccr.corp.intel.com (10.239.6.50) by FMSMSX154.amr.corp.intel.com (10.18.116.70) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 1 Jan 2020 22:03:44 -0800 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.30]) by SHSMSX151.ccr.corp.intel.com ([169.254.3.55]) with mapi id 14.03.0439.000; Thu, 2 Jan 2020 14:03:43 +0800 From: "Tu, Lijuan" To: "Ma, LihongX" , "dts@dpdk.org" CC: "Ma, LihongX" Thread-Topic: [dts] [PATCH V1] framework/project_dpdk: create the base_dir of dpdk if the path not exist Thread-Index: AQHVwTFSpTg62R0l3ku510HdovYHe6fW4lug Date: Thu, 2 Jan 2020 06:03:42 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BBA1169@SHSMSX101.ccr.corp.intel.com> References: <1577917723-7350-1-git-send-email-lihongx.ma@intel.com> In-Reply-To: <1577917723-7350-1-git-send-email-lihongx.ma@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="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dts] [PATCH V1] framework/project_dpdk: create the base_dir of dpdk if the path not exist 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 > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of lihong > Sent: Thursday, January 2, 2020 6:29 AM > To: dts@dpdk.org > Cc: Ma, LihongX > Subject: [dts] [PATCH V1] framework/project_dpdk: create the base_dir of > dpdk if the path not exist >=20 > Signed-off-by: lihong > --- > framework/project_dpdk.py | 4 ++++ > 1 file changed, 4 insertions(+) >=20 > diff --git a/framework/project_dpdk.py b/framework/project_dpdk.py index > 3a0a449..7ec3aad 100644 > --- a/framework/project_dpdk.py > +++ b/framework/project_dpdk.py > @@ -281,6 +281,10 @@ class DPDKdut(Dut): > # ToDo: make this configurable > dst_dir =3D "/tmp/" >=20 > + out =3D self.send_expect("ls -d %s" % p_dir, "# ", verify=3D= True) > + if out =3D=3D 2: > + self.send_expect("mkdir -p %s" % p_dir, "# ") > + > out =3D self.send_expect("ls %s && cd %s" % (dst_dir, p_dir)= , > "#", verify=3DTrue) > if out =3D=3D -1: > -- > 2.7.4