From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id DE0088E7B for ; Wed, 4 Nov 2015 09:50:05 +0100 (CET) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga101.fm.intel.com with ESMTP; 04 Nov 2015 00:50:03 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,242,1444719600"; d="scan'208";a="842240827" Received: from fmsmsx104.amr.corp.intel.com ([10.18.124.202]) by orsmga002.jf.intel.com with ESMTP; 04 Nov 2015 00:50:03 -0800 Received: from fmsmsx116.amr.corp.intel.com (10.18.116.20) by fmsmsx104.amr.corp.intel.com (10.18.124.202) with Microsoft SMTP Server (TLS) id 14.3.248.2; Wed, 4 Nov 2015 00:50:03 -0800 Received: from shsmsx104.ccr.corp.intel.com (10.239.110.15) by fmsmsx116.amr.corp.intel.com (10.18.116.20) with Microsoft SMTP Server (TLS) id 14.3.248.2; Wed, 4 Nov 2015 00:50:03 -0800 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.56]) by SHSMSX104.ccr.corp.intel.com ([169.254.5.100]) with mapi id 14.03.0248.002; Wed, 4 Nov 2015 16:49:54 +0800 From: "Liu, Yong" To: "Tu, LijuanX A" , "dts@dpdk.org" Thread-Topic: [dts] [PATCH] add time for scapy exec Thread-Index: AQHRFtoMmvmMrnlK2ku60ep99+25mp6LjImw Date: Wed, 4 Nov 2015 08:49:54 +0000 Message-ID: <86228AFD5BCD8E4EBFD2B90117B5E81E10F4DB68@SHSMSX103.ccr.corp.intel.com> References: <1446625100-39783-1-git-send-email-lijuanx.a.tu@intel.com> In-Reply-To: <1446625100-39783-1-git-send-email-lijuanx.a.tu@intel.com> Accept-Language: zh-CN, 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] add time for scapy exec 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: , X-List-Received-Date: Wed, 04 Nov 2015 08:50:06 -0000 Hi Lijuan, It will waste our time to waiting 20 seconds in every execution command. M= aybe we can add one parameter for the timeout value.=20 > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Lijuan Tu > Sent: Wednesday, November 04, 2015 4:18 PM > To: dts@dpdk.org > Subject: [dts] [PATCH] add time for scapy exec >=20 > Signed-off-by: Lijuan Tu > --- > framework/tester.py | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) >=20 > diff --git a/framework/tester.py b/framework/tester.py > index 1f4f7ae..851c726 100644 > --- a/framework/tester.py > +++ b/framework/tester.py > @@ -367,12 +367,12 @@ class Tester(Crb): > if self.bgProcIsRunning: > self.send_expect('subprocess.call("scapy -c sniff.py &", > shell=3DTrue)', ">>> ") > self.bgProcIsRunning =3D False > - sleep(2) > + sleep(10) >=20 > for cmd in self.scapyCmds: > self.send_expect(cmd, ">>> ", timeout) >=20 > - sleep(2) > + sleep(10) > self.scapyCmds =3D [] > self.send_expect("exit()", "# ") >=20 > -- > 1.9.3