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 6CD4FA04F7; Wed, 25 Dec 2019 10:06:44 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 58CF11BE9E; Wed, 25 Dec 2019 10:06:44 +0100 (CET) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id 917901BE85 for ; Wed, 25 Dec 2019 10:06:42 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 25 Dec 2019 01:06:41 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.69,353,1571727600"; d="scan'208";a="212077986" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by orsmga008.jf.intel.com with ESMTP; 25 Dec 2019 01:06:41 -0800 Received: from fmsmsx102.amr.corp.intel.com (10.18.124.200) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 25 Dec 2019 01:06:41 -0800 Received: from shsmsx105.ccr.corp.intel.com (10.239.4.158) by FMSMSX102.amr.corp.intel.com (10.18.124.200) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 25 Dec 2019 01:06:40 -0800 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.19]) by SHSMSX105.ccr.corp.intel.com ([169.254.11.72]) with mapi id 14.03.0439.000; Wed, 25 Dec 2019 17:06:39 +0800 From: "Ma, LihongX" To: "dts@dpdk.org" Thread-Topic: [dts][PATCH V1] framework/tester: only restore ports if start trex in dts Thread-Index: AQHVuu1PiiRMv3rUek2CwAY3xoxvIafKj0sg Date: Wed, 25 Dec 2019 09:06:38 +0000 Message-ID: References: <1577228799-25999-1-git-send-email-lihongx.ma@intel.com> In-Reply-To: <1577228799-25999-1-git-send-email-lihongx.ma@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: 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/tester: only restore ports if start trex in dts 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" Tested-by:ma,lihong -----Original Message----- From: Ma, LihongX=20 Sent: Wednesday, December 25, 2019 7:07 AM To: dts@dpdk.org Cc: Ma, LihongX Subject: [dts][PATCH V1] framework/tester: only restore ports if start trex= in dts Signed-off-by: lihong --- framework/tester.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/framework/tester.py b/framework/tester.py index 5b4aff0..7b058= 32 100644 --- a/framework/tester.py +++ b/framework/tester.py @@ -808,7 +808,9 @@ class Tester(Crb): if self.it_uses_external_generator(): if self.is_pktgen and self.pktgen: self.pktgen.quit_generator() - self.restore_trex_interfaces() + # only restore ports if start trex in dts + if 'start_trex' in self.pktgen.conf.keys(): + self.restore_trex_interfaces() self.pktgen =3D None elif self.ixia_packet_gen: self.ixia_packet_gen.close() -- 2.7.4