From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 3136823A for ; Wed, 14 Mar 2018 10:35:39 +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 orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 14 Mar 2018 02:35:37 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.47,469,1515484800"; d="scan'208";a="25581866" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by orsmga006.jf.intel.com with ESMTP; 14 Mar 2018 02:35:37 -0700 Received: from fmsmsx152.amr.corp.intel.com (10.18.125.5) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.319.2; Wed, 14 Mar 2018 02:35:37 -0700 Received: from shsmsx104.ccr.corp.intel.com (10.239.4.70) by FMSMSX152.amr.corp.intel.com (10.18.125.5) with Microsoft SMTP Server (TLS) id 14.3.319.2; Wed, 14 Mar 2018 02:35:37 -0700 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.235]) by SHSMSX104.ccr.corp.intel.com ([169.254.5.226]) with mapi id 14.03.0319.002; Wed, 14 Mar 2018 17:34:51 +0800 From: "Tu, LijuanX A" To: "Zhu, ShuaiX" , "dts@dpdk.org" CC: "Zhu, ShuaiX" Thread-Topic: [dts] [PATCH V1] tests/TestSuite_short_live.py:Delay repair on start_up_time. Thread-Index: AQHTu2Jmx0I1ZKPmJUerVxMNmGYPf6PPdggg Date: Wed, 14 Mar 2018 09:34:50 +0000 Message-ID: <38D041F150D4184C8114E499040E62343DCE09FD@SHSMSX103.ccr.corp.intel.com> References: <1521010972-82091-1-git-send-email-shuaix.zhu@intel.com> In-Reply-To: <1521010972-82091-1-git-send-email-shuaix.zhu@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.0.0.116 dlp-reaction: no-action x-ctpclassification: CTP_NT x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiMTgwMzYyODktNWU1NS00YzUxLWI0NTUtYWI1MWQ4OGIxZGY3IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjIuNS4xOCIsIlRydXN0ZWRMYWJlbEhhc2giOiJ3UVZTSURqeUt2YjdrWU45eFQwWUVvdm8xb1czTmw3OEQ5bjZCNkZ6NDh1T2Z2R2QzXC8rZ29cL3dqZHFrcEptb2cifQ== 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] tests/TestSuite_short_live.py:Delay repair on start_up_time. 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, 14 Mar 2018 09:35:40 -0000 As DPDK will capture signals, " SIGTERM" and "SIGINT", it needs some time t= o prepare to exit. Hi shuai, Could you make your code more succinctly? Code may be simple -----Original Message----- From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of zhu,shuai Sent: Wednesday, March 14, 2018 3:03 PM To: dts@dpdk.org Cc: Zhu, ShuaiX Subject: [dts] [PATCH V1] tests/TestSuite_short_live.py:Delay repair on sta= rt_up_time. I think it is because case has delayed after killing testpmd, resulting in = no release resources. Signed-off-by: zhu,shuai --- tests/TestSuite_short_live.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/TestSuite_short_live.py b/tests/TestSuite_short_live.py = index 62c43a5..8d1d847 100644 --- a/tests/TestSuite_short_live.py +++ b/tests/TestSuite_short_live.py @@ -160,8 +160,10 @@ class TestShortLiveApp(TestCase): # kill with differen Signal if i%2 =3D=3D 0: self.dut.send_expect("pkill -2 testpmd", "#", 60, True) + time.sleep(2) else: self.dut.send_expect("pkill -15 testpmd", "#", 60, True) + time.sleep(2) =20 def test_clean_up_with_signal_l2fwd(self): repeat_time =3D 5 -- 1.9.3