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 E2F85A3160 for ; Thu, 10 Oct 2019 04:46:00 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 8883A1D517; Thu, 10 Oct 2019 04:46:00 +0200 (CEST) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id C1A351D153 for ; Thu, 10 Oct 2019 04:45:58 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 09 Oct 2019 19:45:57 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.67,278,1566889200"; d="scan'208";a="207090711" Received: from unknown (HELO dpdk-wenjielx-dtspatch135.sh.intel.com) ([10.240.176.135]) by fmsmga001.fm.intel.com with ESMTP; 09 Oct 2019 19:45:57 -0700 From: "chen,bo" To: dts@dpdk.org Cc: "chen,bo" Date: Thu, 10 Oct 2019 10:38:55 +0800 Message-Id: <1570675135-49537-1-git-send-email-box.c.chen@intel.com> X-Mailer: git-send-email 1.9.3 Subject: [dts] [PATCH V1] tests/qos_api:set all port to DCB mode 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" start testpmd need set all port to DCB mode Signed-off-by: chen,bo --- tests/TestSuite_qos_api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/TestSuite_qos_api.py b/tests/TestSuite_qos_api.py index c25890b..c25d263 100644 --- a/tests/TestSuite_qos_api.py +++ b/tests/TestSuite_qos_api.py @@ -114,8 +114,8 @@ class TestQosApi(TestCase): set DCB """ self.dut.send_expect('port stop all', 'testpmd> ') - self.dut.send_expect('port config 0 dcb vt off %s pfc off' % n, 'testpmd> ') - self.dut.send_expect('port config 1 dcb vt off %s pfc off' % n, 'testpmd> ') + for i in range(len(self.dut.ports_info)): + self.dut.send_expect('port config %s dcb vt off %s pfc off' % (i, n), 'testpmd> ') self.dut.send_expect('port start all', 'testpmd> ') def scapy_send_packet_verify(self, n): -- 2.17.2