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 D77D18E8A for ; Wed, 4 Nov 2015 05:31:07 +0100 (CET) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga101.fm.intel.com with ESMTP; 03 Nov 2015 20:31:07 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,241,1444719600"; d="scan'208";a="842622684" Received: from unknown (HELO dpdk-fedora20.icx.intel.com) ([10.238.55.12]) by fmsmga002.fm.intel.com with ESMTP; 03 Nov 2015 20:31:06 -0800 From: Lijuan Tu To: dts@dpdk.org Date: Wed, 4 Nov 2015 12:26:42 +0800 Message-Id: <1446611202-37081-1-git-send-email-lijuanx.a.tu@intel.com> X-Mailer: git-send-email 1.9.3 Subject: [dts] [patch] physmem_dump : remove match "\n" send_expect will remove the end "\r\n", so it match failed if only one 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: , X-List-Received-Date: Wed, 04 Nov 2015 04:31:08 -0000 Signed-off-by: Lijuan Tu --- tests/TestSuite_unit_tests_dump.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/tests/TestSuite_unit_tests_dump.py b/tests/TestSuite_unit_tests_dump.py index 2052cb4..8b094b5 100644 --- a/tests/TestSuite_unit_tests_dump.py +++ b/tests/TestSuite_unit_tests_dump.py @@ -129,7 +129,7 @@ class TestUnitTestsDump(TestCase): match_regex = "Segment (\d)+:" for element in elements[1:-1]: match_regex += " %s:(.*?)," % element - match_regex += " %s:(.*?)\n" % elements[-1] + match_regex += " %s:(.*?)" % elements[-1] m = re.compile(r"%s" % match_regex, re.DOTALL) results = m.findall(out) phy_info = [] -- 1.7.3.1