From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id 1B081A046B for ; Mon, 24 Jun 2019 10:55:48 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 131B71BF25; Mon, 24 Jun 2019 10:55:48 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id EE46A1BF1D for ; Mon, 24 Jun 2019 10:55:45 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 24 Jun 2019 01:52:56 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.63,411,1557212400"; d="scan'208";a="359948256" Received: from fmsmsx107.amr.corp.intel.com ([10.18.124.205]) by fmsmga006.fm.intel.com with ESMTP; 24 Jun 2019 01:52:56 -0700 Received: from shsmsx152.ccr.corp.intel.com (10.239.6.52) by fmsmsx107.amr.corp.intel.com (10.18.124.205) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 24 Jun 2019 01:52:56 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.87]) by SHSMSX152.ccr.corp.intel.com ([169.254.6.225]) with mapi id 14.03.0439.000; Mon, 24 Jun 2019 16:52:54 +0800 From: "Ma, LihongX" To: "Li, WenjieX A" , "dts@dpdk.org" CC: "Li, WenjieX A" Thread-Topic: [dts] [PATCH V1] tests/queue_start_stop: change the verify way Thread-Index: AQHVKkH+pQCzCffB10WAP4oh3pN6Laaqfs6g Date: Mon, 24 Jun 2019 08:52:53 +0000 Message-ID: References: <1561349345-53593-1-git-send-email-wenjiex.a.li@intel.com> In-Reply-To: <1561349345-53593-1-git-send-email-wenjiex.a.li@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] tests/queue_start_stop: change the verify way 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" Hi, wenjie As feedback from Phanendra Vukkisala, on cavium_a063 platform , it will out= put "ports 0 queue 0 receive 4 packages" So I think you will change you code base on different env. -----Original Message----- From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Wenjie Li Sent: Monday, June 24, 2019 12:09 PM To: dts@dpdk.org Cc: Li, WenjieX A Subject: [dts] [PATCH V1] tests/queue_start_stop: change the verify way In dts d9bc72a3, Phanendra Vukkisala changed the packet number to 4 and the= verify message to "ports 0 queue 0 receive 4 packages", but in test, the o= ut is: " ports 0 queue 0 receive 1 packages ports 0 queue 0 receive 1 packages ports 0 queue 0 receive 1 packages ports 0 queue 0 receive 1 packages " So change the verify way. Signed-off-by: Wenjie Li --- tests/TestSuite_queue_start_stop.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/TestSuite_queue_start_stop.py b/tests/TestSuite_queue_st= art_stop.py index 34a2f41..7fdef30 100644 --- a/tests/TestSuite_queue_start_stop.py +++ b/tests/TestSuite_queue_start_stop.py @@ -157,7 +157,12 @@ class TestQueueStartStop(TestCase): except Exception, e: raise IOError("queue start/stop forward failure: %s" % e) =20 - self.verify("ports 0 queue 0 receive 4 packages" in out, "start qu= eue revice package failed, out =3D %s"%out) + lines =3D out.split("\r\n") + print lines + if len(lines) =3D=3D 5: + lines.pop() + for line in lines: + self.verify("ports 0 queue 0 receive 1 packages" in line,=20 + "start queue revice package failed, out =3D %s" % out) =20 try: # start tx queue test -- 2.17.2