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 10095A0588; Fri, 17 Apr 2020 05:15:11 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id E5A2B1DB0A; Fri, 17 Apr 2020 05:15:10 +0200 (CEST) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id D44D31DB02 for ; Fri, 17 Apr 2020 05:15:08 +0200 (CEST) IronPort-SDR: B6TT/wru6u8wunsZTeWLYUBnAKsaSD5/vXsnIxVrP9JMBVbrkd/xsiq2JWZBtie/6XC29XLq7h ngdzns0cQaWA== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Apr 2020 20:15:07 -0700 IronPort-SDR: 1ORuO9sGyVvFNn7ZuvVW1dZZals4MIZQFrMerFNyzLt4qc/RI+165wwS5OcQVhym8A7pWbxOob nLIGzqS1y0Wg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,393,1580803200"; d="scan'208";a="333063228" Received: from fmsmsx107.amr.corp.intel.com ([10.18.124.205]) by orsmga001.jf.intel.com with ESMTP; 16 Apr 2020 20:15:07 -0700 Received: from shsmsx604.ccr.corp.intel.com (10.109.6.214) by fmsmsx107.amr.corp.intel.com (10.18.124.205) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 16 Apr 2020 20:15:07 -0700 Received: from shsmsx602.ccr.corp.intel.com (10.109.6.142) by SHSMSX604.ccr.corp.intel.com (10.109.6.214) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Fri, 17 Apr 2020 11:15:05 +0800 Received: from shsmsx602.ccr.corp.intel.com ([10.109.6.142]) by SHSMSX602.ccr.corp.intel.com ([10.109.6.142]) with mapi id 15.01.1713.004; Fri, 17 Apr 2020 11:15:05 +0800 From: "Zhao, XinfengX" To: "dts@dpdk.org" CC: "Xiao, QimaiX" Thread-Topic: [dts] [PATCH V1]short_live: enhance script for misc packets and system interfere Thread-Index: AQHWElIROTboch1480OjpP+Clpvi+Kh8qBYg Date: Fri, 17 Apr 2020 03:15:04 +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: Zhao, Xinfeng -----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