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 49B57A052E; Tue, 21 Jan 2020 08:51:54 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 3AA4C3576; Tue, 21 Jan 2020 08:51:54 +0100 (CET) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id F0791322C for ; Tue, 21 Jan 2020 08:51:52 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 20 Jan 2020 23:51:52 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,345,1574150400"; d="scan'208";a="425402252" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by fmsmga005.fm.intel.com with ESMTP; 20 Jan 2020 23:51:51 -0800 Received: from fmsmsx111.amr.corp.intel.com (10.18.116.5) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 20 Jan 2020 23:51:51 -0800 Received: from shsmsx154.ccr.corp.intel.com (10.239.6.54) by fmsmsx111.amr.corp.intel.com (10.18.116.5) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 20 Jan 2020 23:51:51 -0800 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.30]) by SHSMSX154.ccr.corp.intel.com ([169.254.7.132]) with mapi id 14.03.0439.000; Tue, 21 Jan 2020 15:51:49 +0800 From: "Tu, Lijuan" To: "dts@dpdk.org" Thread-Topic: [dts] [PATCH] tests/l3fwd_base: fix output path to "./output" Thread-Index: AQHV0C2DUzlGh4PLvkOmzmtIszP9mKf0vuTw Date: Tue, 21 Jan 2020 07:51:48 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BBB04E2@SHSMSX101.ccr.corp.intel.com> References: <1579621528-193694-1-git-send-email-lijuan.tu@intel.com> In-Reply-To: <1579621528-193694-1-git-send-email-lijuan.tu@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] tests/l3fwd_base: fix output path to "./output" 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: Tu, Lijuan > Sent: Tuesday, January 21, 2020 11:45 PM > To: dts@dpdk.org > Cc: Tu, Lijuan > Subject: [dts] [PATCH] tests/l3fwd_base: fix output path to "./output" >=20 > Signed-off-by: Lijuan Tu > --- > tests/l3fwd_base.py | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) >=20 > diff --git a/tests/l3fwd_base.py b/tests/l3fwd_base.py index > 132bff3..8ec2b7c 100644 > --- a/tests/l3fwd_base.py > +++ b/tests/l3fwd_base.py > @@ -78,9 +78,9 @@ class L3fwdBase(object): > output_path =3D os.path.join(self.logger.log_path, suiteName= ) > else: > cur_path =3D os.sep.join( > - os.path.realpath(__file__).split(os.sep)[:-3]) > + os.path.realpath(__file__).split(os.sep)[:-2]) > output_path =3D os.path.join( > - cur_path, self.logger.log_path, suiteName) > + cur_path, self.logger.log_path) > if not os.path.exists(output_path): > os.makedirs(output_path) >=20 > -- > 1.8.3.1