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 88B53A04DD; Thu, 28 Nov 2019 07:37:03 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 516543256; Thu, 28 Nov 2019 07:37:03 +0100 (CET) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id 8EBED2F4F for ; Thu, 28 Nov 2019 07:37:01 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 27 Nov 2019 22:37:00 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.69,252,1571727600"; d="scan'208";a="240612838" Received: from unknown (HELO dpdk-wenjielx-KVM190.icx.intel.com) ([10.238.54.190]) by fmsmga002.fm.intel.com with ESMTP; 27 Nov 2019 22:37:00 -0800 From: Wenjie Li To: dts@dpdk.org Cc: Wenjie Li Date: Thu, 28 Nov 2019 15:22:27 +0000 Message-Id: <1574954547-24055-1-git-send-email-wenjiex.a.li@intel.com> X-Mailer: git-send-email 1.9.3 Subject: [dts] [PATCH V1] tests/shutdown_api:'port stop' recover the orignal link status for CVL 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" In DPDK fdcf92ed6637b790, the 'port stop' will recovery the oringnal link status for CVL. If the link is up, it should be up after 'port stop'; if down, then be down. This is different with other NICs. In test case stop_restart, the port is up before 'port stop', so verify the port is UP for CVL and down for other NICs. Signed-off-by: Wenjie Li --- tests/TestSuite_shutdown_api.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/TestSuite_shutdown_api.py b/tests/TestSuite_shutdown_api.py index 63fff84..58daad1 100644 --- a/tests/TestSuite_shutdown_api.py +++ b/tests/TestSuite_shutdown_api.py @@ -201,7 +201,10 @@ class TestShutdownApi(TestCase): self.check_forwarding(received=False) self.dut.send_expect("port stop all", "testpmd> ", 100) time.sleep(5) - self.check_ports(status=False) + if self.nic in ["columbiaville_25g", "columbiaville_100g"]: + self.check_ports(status=True) + else: + self.check_ports(status=False) self.dut.send_expect("port start all", "testpmd> ", 100) time.sleep(5) self.check_ports(status=True) -- 2.17.1