From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 8C9011B3F0 for ; Sat, 2 Feb 2019 02:37:56 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 01 Feb 2019 17:37:54 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,550,1539673200"; d="scan'208";a="143550289" Received: from unknown (HELO localhost.localdomain.sh.intel.com) ([10.240.176.135]) by fmsmga001.fm.intel.com with ESMTP; 01 Feb 2019 17:37:54 -0800 From: zhuwenhui To: dts@dpdk.org Cc: zhuwenhui Date: Sat, 2 Feb 2019 09:41:33 +0800 Message-Id: <1549071693-50577-1-git-send-email-wenhuix.zhu@intel.com> X-Mailer: git-send-email 1.9.3 Subject: [dts] [PATCH V4] tests/dual_vlan Change the verify outside the loop 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: , X-List-Received-Date: Sat, 02 Feb 2019 01:37:57 -0000 Verification should be outside the loop of the query port Signed-off-by: zhuwenhui --- tests/TestSuite_dual_vlan.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/TestSuite_dual_vlan.py b/tests/TestSuite_dual_vlan.py index d7fba3d..42497ef 100644 --- a/tests/TestSuite_dual_vlan.py +++ b/tests/TestSuite_dual_vlan.py @@ -192,7 +192,7 @@ class TestDualVlan(TestCase): time.sleep(1) out = self.dut.send_expect("show port info %s" % port_id, "testpmd> ") port_time_up += 1 - self.verify("Link status: down" not in out, "Port %s Link down, please check your link" % port_id) + self.verify("Link status: down" not in out, "Port %s Link down, please check your link" % port_id) def multimode_test(self, caseIndex): """ -- 2.17.2