test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH] fix bug that tx_vlan command not work in vlan suite
@ 2015-07-14  8:09 Yong Liu
  0 siblings, 0 replies; only message in thread
From: Yong Liu @ 2015-07-14  8:09 UTC (permalink / raw)
  To: dts

From: Marvin Liu <yong.liu@intel.com>

Signed-off-by: Marvin Liu <yong.liu@intel.com>

diff --git a/tests/TestSuite_vlan.py b/tests/TestSuite_vlan.py
index fc6f2cb..2f5dfd4 100644
--- a/tests/TestSuite_vlan.py
+++ b/tests/TestSuite_vlan.py
@@ -92,6 +92,7 @@ class TestVlan(TestCase):
     def get_tcpdump_package(self):
         self.tester.send_expect("killall tcpdump","#")
         return self.tester.send_expect("tcpdump -nn -e -v -r ./vlan_test.cap","#")
+
     def vlan_send_packet(self, vid, num=1):
         """
         Send $num of packet to portid
@@ -112,6 +113,7 @@ class TestVlan(TestCase):
         self.tester.scapy_append('sendp([Ether(src="%s",dst="%s")/Dot1Q(vlan=%s)/IP(len=46)], iface="%s")' % (self.smac, self.dmac, vid, txItf))
 
         self.tester.scapy_execute()
+
     def set_up(self):
         """
         Run before each test case.
@@ -197,7 +199,7 @@ class TestVlan(TestCase):
         intf = self.tester.get_interface(port)
 
         self.dut.send_expect("set nbport 2", "testpmd> ")
-        self.dut.send_expect("tx_vlan set %d %s" % (self.vlan, dutTxPortId), "testpmd> ")
+        self.dut.send_expect("tx_vlan set %s %d" % (dutTxPortId, self.vlan), "testpmd> ")
 
         self.tester.scapy_background()
         self.tester.scapy_append('p = sniff(iface="%s", count=1, timeout=5)' % intf)
-- 
1.9.3

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-07-14  8:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-14  8:09 [dts] [PATCH] fix bug that tx_vlan command not work in vlan suite Yong Liu

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).