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 0A6E6A04DD; Thu, 22 Oct 2020 10:12:19 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 02401A8FE; Thu, 22 Oct 2020 10:12:18 +0200 (CEST) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by dpdk.org (Postfix) with ESMTP id B4B9FA8FE for ; Thu, 22 Oct 2020 10:12:15 +0200 (CEST) IronPort-SDR: kz06QuPK2lP8YFZ+XRPDl5/z65kvqvnlsXTd/RqMa+cGycbS9KsjcdD+TCZkf2coLbZTzNIccs wCe2GfsN66Bw== X-IronPort-AV: E=McAfee;i="6000,8403,9781"; a="147348657" X-IronPort-AV: E=Sophos;i="5.77,404,1596524400"; d="scan'208";a="147348657" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Oct 2020 01:12:13 -0700 IronPort-SDR: 7/XGcRjRWVBKsgYYB8+7YjwpLOYTqIAacGuWahUAYGcv5qawYG6FL+wcM53AkG1lUtrcyD4uHW 21LtH/DqC0Qg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.77,404,1596524400"; d="scan'208";a="533866553" Received: from orsmsx604.amr.corp.intel.com ([10.22.229.17]) by orsmga005.jf.intel.com with ESMTP; 22 Oct 2020 01:12:13 -0700 Received: from orsmsx611.amr.corp.intel.com (10.22.229.24) by ORSMSX604.amr.corp.intel.com (10.22.229.17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Thu, 22 Oct 2020 01:12:12 -0700 Received: from orsmsx601.amr.corp.intel.com (10.22.229.14) by ORSMSX611.amr.corp.intel.com (10.22.229.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Thu, 22 Oct 2020 01:12:12 -0700 Received: from ORSEDG602.ED.cps.intel.com (10.7.248.7) by orsmsx601.amr.corp.intel.com (10.22.229.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5 via Frontend Transport; Thu, 22 Oct 2020 01:12:12 -0700 Received: from NAM02-SN1-obe.outbound.protection.outlook.com (104.47.36.56) by edgegateway.intel.com (134.134.137.103) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.1713.5; Thu, 22 Oct 2020 01:12:09 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Nj4qEPCO6u+EMiQt8N+KOBBSQQ6I1rvhd8Cj9pU57eP0Nh6s72SS4aj6nIeZ7g+HhA0d5ligEmsJABvGGtDBy9jYQfpYHOuuPTIPI1p0grS5ZJfmeWzkQsBwpkolz71djr6IAyypKHQ30xEquxCCXRP43zqwh529xSXFP9lJpNhT5DQLLzt8WxaIOZ/l3rznSeZ7ZUKzg4OqqOR3rY3AmnR67vFPSBYD7eF7cMv+hQgSZe5q9aA1zZvbY3L/MgE+0Ux4o6SXooMlnpk3OCO2g9UyTGjSKPOaYrU/5MFtbypYHMedoHIKnh+g1NZg7THFrqJ91L6fkZtNw/rAU3Gb4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=/PIv5lBNl9bACQ4TTYPQzXLw3v60HDoOtm/PiC40kHw=; b=Dg895tFqR2GuZYK6H63NcwsMUEUfey8MZVIdXl9JvoP/UcxG1yjyWUXAMbEzmT1Gp6nFJY0u/5tLLAXayLxUKxnbjzr4CaDhgfGE8j90ZFYMtI5D7LuFVRAstuUM0fXwa6DXfF41kvddPnDirCuXfg7M1O5EQIR0ZKjQiQ9O17FQu/R2vi5cU4IWESO4w17qQ46Gu+sJqduuNMjP0KTt2KpOZaP32VOlBt1HGBIi4VTFuehl/C8BnYOCHek8A3+hsQefw0QLKvnfvxBIp34KKsAr4PgpAmzsAyTsjy6HLSRqisvsQEpKA8zxAehCLZyfHlsai5qiWMKTzActYa8lRA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=/PIv5lBNl9bACQ4TTYPQzXLw3v60HDoOtm/PiC40kHw=; b=O3QQ7iDwhUTdT1CIlyKBvN98Hwmy0LPC0jPhMNeSpHcx71ggFyuWyVbrmNvaIo+hI8GdbXFrWMlA5MwNP26AxJyHctu0u2ECZsCRRzoJrYARZi/qKhZBAtFtU2Za+hYvkUiUn2GKcTNnF6A2Biu4AcgDICfISpOhIfc2/3GNgm0= Received: from BN8PR11MB3715.namprd11.prod.outlook.com (2603:10b6:408:85::13) by BN8PR11MB3570.namprd11.prod.outlook.com (2603:10b6:408:90::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3477.25; Thu, 22 Oct 2020 08:12:08 +0000 Received: from BN8PR11MB3715.namprd11.prod.outlook.com ([fe80::422:be42:232e:20fa]) by BN8PR11MB3715.namprd11.prod.outlook.com ([fe80::422:be42:232e:20fa%6]) with mapi id 15.20.3477.028; Thu, 22 Oct 2020 08:12:08 +0000 From: "Ma, LihongX" To: Thinh Tran , "dts@dpdk.org" Thread-Topic: [dts] [PATCH] framework/tester closing scapy session raise exception Thread-Index: AQHWp9XD10VcO62kh0ybF4ffsqnVvqmjQ82A Date: Thu, 22 Oct 2020 08:12:08 +0000 Message-ID: References: <20201021181146.125603-1-thinhtr@linux.vnet.ibm.com> In-Reply-To: <20201021181146.125603-1-thinhtr@linux.vnet.ibm.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: linux.vnet.ibm.com; dkim=none (message not signed) header.d=none;linux.vnet.ibm.com; dmarc=none action=none header.from=intel.com; x-originating-ip: [192.198.147.193] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 1b350738-bfa3-401f-989d-08d876622bae x-ms-traffictypediagnostic: BN8PR11MB3570: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:635; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: TsaScZIpJ9gPl0jNbjs4p9PcBwTKcRairXgbrCoQnoL+yR+ffx6ZNgDLsGZn7LV+nItEszKwuHj8BljJwFanbVhF9wEf06dk0/+dmm9jMA8bqADccoR0nrJCSdTZhxp2UOy273gT6Y9UVZ4tiEIBzrRbXSc6Q4zoXXWU4mp4efZCYkrqFmyeUJh8hgmtAiXl7TZEcwtNPcwU+knP9CzYkvDEiCMta9+32AmUgsUJ1yqk7+ieirB/UIeyUyvHsKenKyXQcZjUrWeGbtAVq6d9Tm6z1K4tubG7kvB2lbV8/A/k/A6/afaXPYIPgBgQ6zvxyxY58dD9QP3Z9IllCBwYdQ== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BN8PR11MB3715.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(396003)(366004)(136003)(376002)(346002)(39860400002)(33656002)(52536014)(55016002)(316002)(478600001)(2906002)(83380400001)(86362001)(8936002)(9686003)(76116006)(186003)(71200400001)(110136005)(53546011)(66946007)(66476007)(66446008)(64756008)(5660300002)(66556008)(7696005)(6506007)(26005)(8676002); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata: Uqpff/ceIVIpayHpQFrjr93aQUftrmutKq1KEwv/QoNgrE0aOZAt3sWViSRCEx2c8c89WcyyhOeJQAhsf8BdO9ThBlxvsfzVxbv+jY+nFqQevV4m4k4iuj2xcJvLlwe64WybfA2/T88JwZujATShrS/6AksLIxZ1WGCx9HFdO09VKKITKBhc04L+QlWCf72W1wHU0ydAo/eYeUXEhvwcZy1W7RWbUhdCtYM/bn9Pd2Rx9NQ9H4Zt1Nek5c6yMl6Fqa/6cJsTK595Cz5HUEtD+6wPNZNUkjLe2w4RgxEFMlS2+eRyf7ECKDprM6AgfS1Wk/46oIkn9328+LHMW7sYPu7dirCse+SWVfvtuFeNLyb5ZITlRKRxYLJEvJQz+UDy/zID2yrAKNmRzOslnNH2YJo6ugQ+qlzxMwxo7Wra6K6Zj0uyAfVgwrEgY8+SkCfSdABRF0MLNUhPh6Yd4XGsvh65EF2ffq6qEnfUrQITgaM3EMFcA9qmrt2ysPRBsBq102ZbdnaY93cv1RFJBg2gOOEkmeLcsqfrLsC70qppl+Ffxl2Z6jSd/0LW2bv5jEn1TqHpOOKTc8s9uVR7bZc9/tFigawFfO8Rkba58b4Wo6X8uqNpMo8qsHpI+DHhAgeNV3NmknZ7H96kXDk13zH/UA== x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BN8PR11MB3715.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1b350738-bfa3-401f-989d-08d876622bae X-MS-Exchange-CrossTenant-originalarrivaltime: 22 Oct 2020 08:12:08.3640 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: RQ9JCV+CRlSYFGqlxnoeo+HNWL2fvXivx1StWdgN2iCZu35EJyLNIEt424bvAHuRbXFhJeBSVwGAB5FTtMkXrw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN8PR11MB3570 X-OriginatorOrg: intel.com Subject: Re: [dts] [PATCH] framework/tester closing scapy session raise exception 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" > -----Original Message----- > From: dts On Behalf Of Thinh Tran > Sent: Thursday, October 22, 2020 2:12 AM > To: dts@dpdk.org > Cc: thinhtr@linux.vnet.ibm.com > Subject: [dts] [PATCH] framework/tester closing scapy session raise > exception >=20 > Sending control "^c" during closing the scapy sessions raised the time= - > out exception for expecting scapy prompt ">>> " return causing the > failure > during setup. > Simply sending "quit" to exit scapy gratefully instead. >=20 > Signed-off-by: Thinh Tran > --- > framework/tester.py | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) >=20 > diff --git a/framework/tester.py b/framework/tester.py index > ca179b2..a7a68b5 100644 > --- a/framework/tester.py > +++ b/framework/tester.py > @@ -868,8 +868,7 @@ class Tester(Crb): > if self.scapy_sessions_li: > for i in self.scapy_sessions_li: > if i.session.isalive(): > - i.session.send_expect("^c", ">>> ", timeout=3D2) > - i.session.send_expect("^d", "#", timeout=3D2) > + i.session.send_expect("quit", "# ", timeout=3D2) > i.session.close() > self.scapy_sessions_li.clear() >=20 > -- > 2.17.0 The session is scapy session that start the scapy, so can not use the comma= nd quit, should use "quit()" Regards, Ma,lihong