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 5B163A057B; Tue, 14 Apr 2020 13:43:58 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 51A711C1E7; Tue, 14 Apr 2020 13:43:58 +0200 (CEST) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 851561C199 for ; Tue, 14 Apr 2020 13:43:57 +0200 (CEST) IronPort-SDR: N25uWXV67jqi0mrVsKH69V0W+DD6R4VSkBHzMQ8qwMnQp5gXvWAWVD0NefZ/pB92X+NWX6VWvr UHrbXtRhYaSQ== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Apr 2020 04:43:56 -0700 IronPort-SDR: +FnJ2YW5DVFb/g7b/i2AjfhJ36WgViux2J1QjV9o7sdiU9mnTtQMW2rRzNAOSEOLunih7sxJOT 1LuFVWHufjZA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,382,1580803200"; d="scan'208";a="271375677" Received: from unknown (HELO dpdk-xiaoqimai-dut.sh.intel.com) ([10.240.183.52]) by orsmga002.jf.intel.com with ESMTP; 14 Apr 2020 04:43:55 -0700 From: Xiao Qimai To: dts@dpdk.org Cc: Xiao Qimai Date: Tue, 14 Apr 2020 19:37:51 +0800 Message-Id: <1586864271-395-1-git-send-email-qimaix.xiao@intel.com> X-Mailer: git-send-email 1.8.3.1 Subject: [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" *. 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 == 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] + if res != '0': time.sleep(1) delay = delay + 1 else: -- 1.8.3.1