test suite reviews and discussions
 help / color / mirror / Atom feed
From: Jingguo Fu <jingguox.fu@intel.com>
To: dts@dpdk.org
Cc: Jingguo Fu <jingguox.fu@intel.com>
Subject: [dts] [DTS][PATCH 3/3] whitelist: fix sutie for framework update
Date: Tue, 26 May 2015 18:05:47 +0800	[thread overview]
Message-ID: <1432634747-20565-3-git-send-email-jingguox.fu@intel.com> (raw)
In-Reply-To: <1432634747-20565-1-git-send-email-jingguox.fu@intel.com>

Signed-off-by: Jingguo Fu <jingguox.fu@intel.com>
---
 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

  parent reply	other threads:[~2015-05-26 10:06 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-26 10:05 [dts] [DTS][PATCH 1/3] ieee1588: " Jingguo Fu
2015-05-26 10:05 ` [dts] [DTS][PATCH 2/3] jumbo frame: " Jingguo Fu
2015-05-26 10:05 ` Jingguo Fu [this message]
2015-06-01  8:59 ` [dts] [DTS][PATCH 1/3] ieee1588: " Liu, Yong

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1432634747-20565-3-git-send-email-jingguox.fu@intel.com \
    --to=jingguox.fu@intel.com \
    --cc=dts@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).