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 3E3B2A058A; Fri, 17 Apr 2020 08:50:40 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 0A4E31DE60; Fri, 17 Apr 2020 08:50:40 +0200 (CEST) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by dpdk.org (Postfix) with ESMTP id D938E1DE37 for ; Fri, 17 Apr 2020 08:50:37 +0200 (CEST) IronPort-SDR: Ch8DP75/i6NdwEV9UDbrhyu6PzehQUsYic5eRKP5QTgdEpT/QOr8tKwY8H7VgXpDTVtTtI0+vy XH46sNwlGGpA== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Apr 2020 23:50:36 -0700 IronPort-SDR: /sLmpV3QgV5s4ptCbUhIa5hkDGXCvdarusx5o0soGFbUsZioBvvvsHZ6cXxIrsGQPbqUWtvVQM tJpWz9zuEEHg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,394,1580803200"; d="scan'208";a="278943758" Received: from fmsmsx107.amr.corp.intel.com ([10.18.124.205]) by orsmga008.jf.intel.com with ESMTP; 16 Apr 2020 23:50:36 -0700 Received: from shsmsx603.ccr.corp.intel.com (10.109.6.143) by fmsmsx107.amr.corp.intel.com (10.18.124.205) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 16 Apr 2020 23:50:36 -0700 Received: from shsmsx602.ccr.corp.intel.com (10.109.6.142) by SHSMSX603.ccr.corp.intel.com (10.109.6.143) 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:50:33 +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:50:33 +0800 From: "Zhao, XinfengX" To: "dts@dpdk.org" CC: "Xiao, QimaiX" Thread-Topic: [dts] [PATCH V2]short_live: enhance script for different envs Thread-Index: AQHWFICoT6/ddbeYTUiYofaxtl9i5ah83lOw Date: Fri, 17 Apr 2020 06:50:33 +0000 Message-ID: References: <1587104163-291846-1-git-send-email-qimaix.xiao@intel.com> In-Reply-To: <1587104163-291846-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 V2]short_live: enhance script for different envs 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: Friday, April 17, 2020 2:16 PM To: dts@dpdk.org Cc: Xiao, QimaiX Subject: [dts] [PATCH V2]short_live: enhance script for different envs *. enhance script for different envs 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..5a91420 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].strip() + if res !=3D '0': time.sleep(1) delay =3D delay + 1 else: -- 1.8.3.1