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 48164A04F3; Thu, 9 Jan 2020 03:48:13 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 310A41D67B; Thu, 9 Jan 2020 03:48:13 +0100 (CET) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by dpdk.org (Postfix) with ESMTP id 8D9A81D678 for ; Thu, 9 Jan 2020 03:48:11 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 08 Jan 2020 18:48:10 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.69,412,1571727600"; d="scan'208";a="233989403" Received: from unknown (HELO dpdk-xiaoqimai-tester.sh.intel.com) ([10.239.250.12]) by orsmga002.jf.intel.com with ESMTP; 08 Jan 2020 18:48:09 -0800 From: Zeng Xiaoxiao To: dts@dpdk.org Cc: Zeng Xiaoxiao Date: Thu, 9 Jan 2020 10:48:38 +0800 Message-Id: <1578538118-234221-1-git-send-email-xiaoxiaox.zeng@intel.com> X-Mailer: git-send-email 1.8.3.1 Subject: [dts] [PATCH V2] tests/port_control:add if else to suit 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" Signed-off-by: Zeng Xiaoxiao --- tests/TestSuite_port_control.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tests/TestSuite_port_control.py b/tests/TestSuite_port_control.py index a458add..f006ddb 100644 --- a/tests/TestSuite_port_control.py +++ b/tests/TestSuite_port_control.py @@ -166,12 +166,18 @@ class TestPortControl(TestCase): terminal.execute_cmd("stop") terminal.execute_cmd("port stop all") ret = terminal.get_port_link_status(self.port_id_0) - self.verify(ret == "down", "port not down!") + if self.nic.startswith('columbiaville'): + self.verify(ret != "", "port status error!") + else: + self.verify(ret == "down", "port not down!") def reset_pmd_port(self, terminal): terminal.execute_cmd("port reset all") ret = terminal.get_port_link_status(self.port_id_0) - self.verify(ret == "down", "port reset fail!") + if self.nic.startswith('columbiaville'): + self.verify(ret != "", "port status error!") + else: + self.verify(ret == "down", "port not down!") def close_pmd_port(self, terminal): terminal.execute_cmd("port close all") -- 1.8.3.1