From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id AFB21A04FD; Tue, 17 May 2022 09:49:38 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 85E7F40042; Tue, 17 May 2022 09:49:38 +0200 (CEST) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by mails.dpdk.org (Postfix) with ESMTP id C15A440041 for ; Tue, 17 May 2022 09:49:36 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1652773777; x=1684309777; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=MGvwPxnV8fP8mVS65Ay+rexY30pTjRgI9408QWyobE4=; b=U6i6Kn+yik/yGCGA9KjzURg6gJK73RoUAIEahvs8IY3h3liIH4cafvOl vBxHyVinGkbj+1ir11wbhlo/ZNcpWgdw/4pWiPWu26c64AH0LqQjfm/rA 852nRkwvyWh4Akl7PxUmPbrUxVtcycCATt26VgQ6TU3CRw4OX0RCQ33e1 SS+ih9XhsA/s/XhP294A1wCGe8GYYXdB/Q27mE0OdefQlD0EtM8rD5JAX V+HKWIrksvtK+QjJlC/5cwtMdxqH0tMuFru/pXm2OjoWTWNg698Bfq8JS jBjjUfRB7p+Vf9KY9cCjIENKOsmKkAHZD8TSuA9ViLywAukoUAKRfZlgF Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10349"; a="250995602" X-IronPort-AV: E=Sophos;i="5.91,232,1647327600"; d="scan'208";a="250995602" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 May 2022 00:49:04 -0700 X-IronPort-AV: E=Sophos;i="5.91,232,1647327600"; d="scan'208";a="544783687" Received: from unknown (HELO daily-regression-131.intel.com) ([10.239.251.131]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 May 2022 00:49:03 -0700 From: Jiale Song To: dts@dpdk.org Cc: Jiale Song Subject: [dts] [PATCH V2] tests/l3fwd_func: fix script Date: Tue, 17 May 2022 15:48:59 +0800 Message-Id: <20220517074859.1715527-1-songx.jiale@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.29 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 fix 2 issue: 1.When DUT and tester ports are cross connected, the information of interconnection ports cannot be obtained correctly. 2.tcpdump timeout, increase the '-n' to skip the tcpdump reverse domain name resolution operation. Signed-off-by: Jiale Song --- tests/TestSuite_l3fwd_func.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/TestSuite_l3fwd_func.py b/tests/TestSuite_l3fwd_func.py index 7340c09d..c2a3988b 100644 --- a/tests/TestSuite_l3fwd_func.py +++ b/tests/TestSuite_l3fwd_func.py @@ -49,7 +49,8 @@ class TestL3fwdFunc(TestCase): self.app_path = self.dut.build_dpdk_apps("examples/l3fwd") self.pkt = Packet() self.dport_info0 = self.dut.ports_info[self.dut_ports[0]] - self.tport_info0 = self.tester.ports_info[self.dut_ports[0]] + tport = self.tester.get_local_port(self.dut_ports[0]) + self.tport_info0 = self.tester.ports_info[tport] self.tport_intf0 = self.tport_info0["intf"] # judgment is added to avoid errors caused by the absence of port 1 if len(self.dut_ports) >= 2: @@ -132,7 +133,7 @@ class TestL3fwdFunc(TestCase): :return: """ out = self.tester.send_expect( - "tcpdump -r /tmp/tester/sniff_%s.pcap" % (self.tport_intf0), + "tcpdump -n -r /tmp/tester/sniff_%s.pcap" % (self.tport_intf0), "# ", timeout=30, ) -- 2.17.1