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 CB083A046B for ; Mon, 24 Jun 2019 06:04:25 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id BF7731BF56; Mon, 24 Jun 2019 06:04:25 +0200 (CEST) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id B26D01BF55 for ; Mon, 24 Jun 2019 06:04:24 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 23 Jun 2019 21:04:23 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.63,411,1557212400"; d="scan'208";a="187788714" Received: from unknown (HELO localhost.localdomain.sh.intel.com) ([10.240.176.135]) by fmsmga002.fm.intel.com with ESMTP; 23 Jun 2019 21:04:22 -0700 From: Wenjie Li To: dts@dpdk.org Cc: Wenjie Li Date: Mon, 24 Jun 2019 12:09:05 +0800 Message-Id: <1561349345-53593-1-git-send-email-wenjiex.a.li@intel.com> X-Mailer: git-send-email 1.9.3 Subject: [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" 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 out 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_start_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) - self.verify("ports 0 queue 0 receive 4 packages" in out, "start queue revice package failed, out = %s"%out) + lines = out.split("\r\n") + print lines + if len(lines) == 5: + lines.pop() + for line in lines: + self.verify("ports 0 queue 0 receive 1 packages" in line, "start queue revice package failed, out = %s" % out) try: # start tx queue test -- 2.17.2