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 11F11A058A; Fri, 17 Apr 2020 08:40:09 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id C6CBE1DE42; Fri, 17 Apr 2020 08:40:08 +0200 (CEST) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id 6627A1DB28 for ; Fri, 17 Apr 2020 08:40:06 +0200 (CEST) IronPort-SDR: x8CRKN1ddz/X2KfNhv/N3MjmIGVzzJtGoUgzoQ31UurhkCiFoDlWa6y7AwhmxJVZihambql1k1 3wYUKxGh8k8g== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Apr 2020 23:40:05 -0700 IronPort-SDR: 5d4HsbmAXC+sk7ND/z1nIUhL9j7ZYtyheLvXwK08F5HDKMFEJniZ82c6nMt5dytIPO94mIOZHK alIYqP0Ftrbw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,394,1580803200"; d="scan'208";a="428130416" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by orsmga005.jf.intel.com with ESMTP; 16 Apr 2020 23:40:05 -0700 Received: from shsmsx602.ccr.corp.intel.com (10.109.6.142) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 16 Apr 2020 23:40:05 -0700 Received: from shsmsx602.ccr.corp.intel.com (10.109.6.142) by SHSMSX602.ccr.corp.intel.com (10.109.6.142) 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 14:40:03 +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 14:40:03 +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+Kh84O7g Date: Fri, 17 Apr 2020 06:40:03 +0000 Message-ID: <9aa215a403b44649a3ba90da695870ea@intel.com> 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" Discard this patch -----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