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 967D5A04C7; Wed, 16 Sep 2020 12:29:53 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 80F731C201; Wed, 16 Sep 2020 12:29:53 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 4DD451C1D8 for ; Wed, 16 Sep 2020 12:29:52 +0200 (CEST) IronPort-SDR: fzulS2CdaskFtUIs6qYzPP96nj2cVvfcDL7K8h159qJKHfY6uNWwO+tBwFdgx/ju7S2HYYRQAZ GPrKI6GCaxGA== X-IronPort-AV: E=McAfee;i="6000,8403,9745"; a="223624695" X-IronPort-AV: E=Sophos;i="5.76,432,1592895600"; d="scan'208";a="223624695" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Sep 2020 03:29:51 -0700 IronPort-SDR: TIBh9q2m0N2QdmlUvxPdANwj6EbJON6R3639eRPi2Zv1lAvilWhkpa/usFxQ6R96zxUVREWtVz qj3ckIemHumw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,432,1592895600"; d="scan'208";a="319790779" Received: from unknown (HELO cb-dts.sh.intel.com) ([10.240.183.58]) by orsmga002.jf.intel.com with ESMTP; 16 Sep 2020 03:29:50 -0700 From: ChenBo To: dts@dpdk.org Cc: ChenBo Date: Wed, 16 Sep 2020 18:14:41 +0800 Message-Id: <20200916101441.27678-1-box.c.chen@intel.com> X-Mailer: git-send-email 2.17.1 Subject: [dts] [PATCH V1] tests/fortville_rss_input: adaptation meson build 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" 1.Modification of adaptation meson build. 2.Correct class name Signed-off-by: ChenBo --- tests/TestSuite_fortville_rss_input.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/tests/TestSuite_fortville_rss_input.py b/tests/TestSuite_fortville_rss_input.py index 8a0c41e..58868bf 100644 --- a/tests/TestSuite_fortville_rss_input.py +++ b/tests/TestSuite_fortville_rss_input.py @@ -67,7 +67,7 @@ from test_case import TestCase # -class TestFortvilleRssGranularityConfig(TestCase): +class TestFortvilleRssInput(TestCase): # # # Utility methods and other non-test code. @@ -84,6 +84,7 @@ class TestFortvilleRssGranularityConfig(TestCase): ports = self.dut.get_ports(self.nic) self.verify(len(ports) >= 1, "Not enough ports available") dutPorts = self.dut.get_ports(self.nic) + self.dut_ports = dutPorts localPort = self.tester.get_local_port(dutPorts[0]) self.itf = self.tester.get_interface(localPort) self.pmdout = PmdOutput(self.dut) @@ -292,13 +293,13 @@ class TestFortvilleRssGranularityConfig(TestCase): """ Create testpmd command """ - self.dut.send_expect( - "./%s/app/testpmd -c fffff -n %d -- -i --coremask=0xffffe --portmask=0x1 --rxq=4 --txq=4" % - (self.target, self.dut.get_memory_channels()), "testpmd> ", 120) - + app_name = self.dut.apps_name['test-pmd'] + eal_params = self.dut.create_eal_parameters(cores='1S/4C/1T', ports=[self.dut_ports[0]]) + cmd = app_name + eal_params + '-- -i --portmask=0x1 --rxq=4 --txq=4' + self.dut.send_expect(cmd, "testpmd> ", 30) self.dut.send_expect("set verbose 8", "testpmd> ") self.dut.send_expect("set fwd rxonly", "testpmd> ") - self.dut.send_expect("start", "testpmd> ", 120) + self.dut.send_expect("start", "testpmd> ", 10) time.sleep(2) res = self.pmdout.wait_link_status_up("all") -- 2.17.1