From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id B8AFF9A9E for ; Tue, 26 May 2015 12:06:10 +0200 (CEST) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga103.fm.intel.com with ESMTP; 26 May 2015 03:05:58 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.13,497,1427785200"; d="scan'208";a="731711061" Received: from shvmail01.sh.intel.com ([10.239.29.42]) by fmsmga002.fm.intel.com with ESMTP; 26 May 2015 03:05:57 -0700 Received: from shecgisg003.sh.intel.com (shecgisg003.sh.intel.com [10.239.29.90]) by shvmail01.sh.intel.com with ESMTP id t4QA5tvo007794; Tue, 26 May 2015 18:05:55 +0800 Received: from shecgisg003.sh.intel.com (localhost [127.0.0.1]) by shecgisg003.sh.intel.com (8.13.6/8.13.6/SuSE Linux 0.8) with ESMTP id t4QA5r42020617; Tue, 26 May 2015 18:05:55 +0800 Received: (from jingguox@localhost) by shecgisg003.sh.intel.com (8.13.6/8.13.6/Submit) id t4QA5rL6020613; Tue, 26 May 2015 18:05:53 +0800 From: Jingguo Fu To: dts@dpdk.org Date: Tue, 26 May 2015 18:05:47 +0800 Message-Id: <1432634747-20565-3-git-send-email-jingguox.fu@intel.com> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1432634747-20565-1-git-send-email-jingguox.fu@intel.com> References: <1432634747-20565-1-git-send-email-jingguox.fu@intel.com> Cc: Jingguo Fu Subject: [dts] [DTS][PATCH 3/3] whitelist: fix sutie for framework update 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: Tue, 26 May 2015 10:06:11 -0000 Signed-off-by: Jingguo Fu --- tests/TestSuite_whitelist.py | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/tests/TestSuite_whitelist.py b/tests/TestSuite_whitelist.py index aedae40..480589c 100644 --- a/tests/TestSuite_whitelist.py +++ b/tests/TestSuite_whitelist.py @@ -36,12 +36,9 @@ Test the support of Whitelist Features by Poll Mode Drivers import dts import time - - from test_case import TestCase from pmd_output import PmdOutput - class TestWhitelist(TestCase): def set_up_all(self): @@ -51,19 +48,15 @@ class TestWhitelist(TestCase): Two Ports testpmd can normally started """ - self.frames_to_send = 1 - # Based on h/w type, choose how many ports to use self.dutPorts = self.dut.get_ports() - # Verify that enough ports are available self.verify(len(self.dutPorts) >= 1, "Insufficient ports") - portMask = dts.create_mask(self.dutPorts[:2]) self.pmdout = PmdOutput(self.dut) - self.pmdout.start_testpmd("1S/2C/1T", "--portmask=%s" % portMask) + self.pmdout.start_testpmd("Default", "--portmask=%s" % portMask) self.dut.send_expect("set verbose 1", "testpmd> ") # get dest address from self.target port @@ -89,15 +82,11 @@ class TestWhitelist(TestCase): """ Send 1 packet to portid. """ - itf = self.tester.get_interface(self.tester.get_local_port(portid)) - self.tester.scapy_foreground() self.tester.scapy_append('sendp([Ether(dst="%s", src="52:00:00:00:00:00")], iface="%s", count=%d)' % (destMac, - itf, - self.frames_to_send)) + itf, self.frames_to_send)) self.tester.scapy_execute() - time.sleep(5) def test_whitelist_add_remove_mac_address(self): @@ -168,7 +157,6 @@ class TestWhitelist(TestCase): Add Same MAC twice will be failed Add more than MAX number will be failed """ - portid = self.dutPorts[0] fake_mac_addr = "00:00:00:00:00:00" -- 2.1.0