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 2189CA058A; Fri, 17 Apr 2020 08:22:33 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id DD9EB1DE23; Fri, 17 Apr 2020 08:22:32 +0200 (CEST) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 519471DDEF for ; Fri, 17 Apr 2020 08:22:31 +0200 (CEST) IronPort-SDR: n8AUj+1Dd+0HE4CUsw2IHus57uHC1fGiY7tke3HcPyMgRdVYNERjjYTzu68FYr1erxDt8lDtth D3OmQmZ+02/w== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Apr 2020 23:22:30 -0700 IronPort-SDR: YzD08A0I3B+Alq8X2XDEyPVn0Xyj0h+vBaZvuU+4Zolr4dEZGKhnojvZOcaP75WvQvQ5/fmDb+ wjkzXRrYbZdA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,393,1580803200"; d="scan'208";a="289164754" Received: from unknown (HELO dpdk-xiaoqimai-dut.sh.intel.com) ([10.240.183.52]) by fmsmga002.fm.intel.com with ESMTP; 16 Apr 2020 23:22:29 -0700 From: Xiao Qimai To: dts@dpdk.org Cc: Xiao Qimai Date: Fri, 17 Apr 2020 14:16:03 +0800 Message-Id: <1587104163-291846-1-git-send-email-qimaix.xiao@intel.com> X-Mailer: git-send-email 1.8.3.1 Subject: [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" *. 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 == rxPort): count = 2 - filter_list = [{'layer': 'ether', 'config': {'type': 'not IPv6'}}] + filter_list = [{'layer': 'ether', 'config': {'type': 'not IPv6'}}, {'layer': 'userdefined', 'config': {'pcap-filter': 'not udp'}}] inst = self.tester.tcpdump_sniff_packets(rxitf, count=count,filters=filter_list) pktlen = pktSize - 14 @@ -124,7 +124,9 @@ class TestShortLiveApp(TestCase): delay = 0 while delay < delay_max: process = self.dut.send_expect("lsof %s | wc -l" % process_file, "#") - if process != '0': + # as FUSE filesystem may not be accessible for root, so the output might include some warning info + res = process.splitlines()[-1].strip() + if res != '0': time.sleep(1) delay = delay + 1 else: -- 1.8.3.1