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 1FAB9A0588; Thu, 16 Apr 2020 10:06:13 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 082CD1C1FC; Thu, 16 Apr 2020 10:06:13 +0200 (CEST) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id 12B561C1E6 for ; Thu, 16 Apr 2020 10:06:11 +0200 (CEST) IronPort-SDR: Y+y36/coQ+SlIkWSbz3l/tVSnRGZvKX7qoupvrYZNQDuz+t35Ky1Jb3Pc6IejdyIwZ20syNGeI WsswJwp8AAPQ== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Apr 2020 01:06:10 -0700 IronPort-SDR: 5BPwGbn5oUnjsNbIW7uzQQZMUfVl+8HAm9AmNM3Ii8YTplhWVb/4aR9/xQviRt47gmPj7wqSY1 i6d+HPBfTAtA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,390,1580803200"; d="scan'208";a="299237052" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by FMSMGA003.fm.intel.com with ESMTP; 16 Apr 2020 01:06:10 -0700 Received: from shsmsx601.ccr.corp.intel.com (10.109.6.141) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 16 Apr 2020 01:06:10 -0700 Received: from shsmsx603.ccr.corp.intel.com (10.109.6.143) by SHSMSX601.ccr.corp.intel.com (10.109.6.141) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Thu, 16 Apr 2020 16:05:35 +0800 Received: from shsmsx603.ccr.corp.intel.com ([10.109.6.143]) by SHSMSX603.ccr.corp.intel.com ([10.109.6.143]) with mapi id 15.01.1713.004; Thu, 16 Apr 2020 16:05:35 +0800 From: "Ma, LihongX" To: "dts@dpdk.org" CC: "Xiao, QimaiX" Thread-Topic: [dts] [PATCH V1]short_live: enhance script for misc packets and system interfere Thread-Index: AQHWElIR0RL9qOzs00yRf5I+MLkQ8Kh7ZtQQ Date: Thu, 16 Apr 2020 08:05:35 +0000 Message-ID: References: <1586864271-395-1-git-send-email-qimaix.xiao@intel.com> In-Reply-To: <1586864271-395-1-git-send-email-qimaix.xiao@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.36] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dts] [PATCH V1]short_live: enhance script for misc packets and system interfere 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" Tested-by: ma,lihong Regards, Ma,lihong -----Original Message----- From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Xiao Qimai Sent: Tuesday, April 14, 2020 7:38 PM To: dts@dpdk.org Cc: Xiao, QimaiX Subject: [dts] [PATCH V1]short_live: enhance script for misc packets and sy= stem interfere *. case script enhancement Signed-off-by: Xiao Qimai --- tests/TestSuite_short_live.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/TestSuite_short_live.py b/tests/TestSuite_short_live.py = index 50c4db1..dffe4af 100644 --- a/tests/TestSuite_short_live.py +++ b/tests/TestSuite_short_live.py @@ -102,7 +102,7 @@ class TestShortLiveApp(TestCase): if (txPort =3D=3D rxPort): count =3D 2 =20 - filter_list =3D [{'layer': 'ether', 'config': {'type': 'not IPv6'}= }] + filter_list =3D [{'layer': 'ether', 'config': {'type': 'not=20 + IPv6'}}, {'layer': 'userdefined', 'config': {'pcap-filter': 'not=20 + udp'}}] inst =3D self.tester.tcpdump_sniff_packets(rxitf, count=3Dcount,fi= lters=3Dfilter_list) =20 pktlen =3D pktSize - 14 @@ -124,7 +124,9 @@ class TestShortLiveApp(TestCase): delay =3D 0 while delay < delay_max: process =3D self.dut.send_expect("lsof %s | wc -l" % process_f= ile, "#") - if process !=3D '0': + # as FUSE filesystem may not be accessible for root, so the ou= tput might include some warning info + res =3D process.splitlines()[-1] + if res !=3D '0': time.sleep(1) delay =3D delay + 1 else: -- 1.8.3.1