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 93B4BA0567; Fri, 13 Mar 2020 07:29:46 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 8B83E1C02B; Fri, 13 Mar 2020 07:29:46 +0100 (CET) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id CE2CB1C02B for ; Fri, 13 Mar 2020 07:29:44 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 12 Mar 2020 23:29:43 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,547,1574150400"; d="scan'208";a="278112035" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by fmsmga002.fm.intel.com with ESMTP; 12 Mar 2020 23:29:43 -0700 Received: from fmsmsx122.amr.corp.intel.com (10.18.125.37) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 12 Mar 2020 23:29:43 -0700 Received: from shsmsx104.ccr.corp.intel.com (10.239.4.70) by fmsmsx122.amr.corp.intel.com (10.18.125.37) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 12 Mar 2020 23:29:43 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.43]) by SHSMSX104.ccr.corp.intel.com ([169.254.5.206]) with mapi id 14.03.0439.000; Fri, 13 Mar 2020 14:29:40 +0800 From: "Tu, Lijuan" To: Thinh Tran , "dts@dpdk.org" CC: "drc@linux.vnet.ibm.com" Thread-Topic: [dts] [PATCH] test/shot_live: fix expecting string Thread-Index: AQHV8jkTbkWHsVEYzkaEm22QAdORPahGHRdw Date: Fri, 13 Mar 2020 06:29:39 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BBEC6EE@SHSMSX101.ccr.corp.intel.com> References: <20200304152426.294-1-thinhtr@linux.vnet.ibm.com> In-Reply-To: <20200304152426.294-1-thinhtr@linux.vnet.ibm.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] test/shot_live: fix expecting string 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, thanks > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Thinh Tran > Sent: Wednesday, March 4, 2020 11:24 PM > To: dts@dpdk.org > Cc: drc@linux.vnet.ibm.com; Thinh Tran > Subject: [dts] [PATCH] test/shot_live: fix expecting string >=20 > - Not sure the "link state change event" is specific string for others, > in general the testpmd does not produce it, but returns its prompt. > This causes testcase Failed - TIMEOUT > - change it back to expecting testpmd prompt >=20 > Signed-off-by: Thinh Tran > --- > tests/TestSuite_short_live.py | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/tests/TestSuite_short_live.py b/tests/TestSuite_short_live.p= y > index 31adf0d..3e088ce 100644 > --- a/tests/TestSuite_short_live.py > +++ b/tests/TestSuite_short_live.py > @@ -168,7 +168,7 @@ class TestShortLiveApp(TestCase): > for i in range(repeat_time): > #dpdk start > print("clean_up_with_signal_testpmd round %d" % (i + 1)) > - self.dut.send_expect("./%s/app/testpmd -c 0xf -n 4 -- -i -- > portmask=3D0x3" % self.target, "link state change event", 120) > + self.dut.send_expect("./%s/app/testpmd -c 0xf -n 4 -- -i > + --portmask=3D0x3" % self.target, "testpmd>", 120) > self.dut.send_expect("set fwd mac", "testpmd>") > self.dut.send_expect("set promisc all off", "testpmd>") > self.dut.send_expect("start", "testpmd>") > -- > 2.17.1