test suite reviews and discussions
 help / color / mirror / Atom feed
From: "zhao,meijuan" <meijuanx.zhao@intel.com>
To: dts@dpdk.org
Cc: "zhao,meijuan" <meijuanx.zhao@intel.com>
Subject: [dts] [PATCH V1] fix vf_kernel alt_session as false
Date: Mon, 15 Jan 2018 10:05:55 +0800	[thread overview]
Message-ID: <1515981955-17074-1-git-send-email-meijuanx.zhao@intel.com> (raw)

in test_zdpf_2kvf_2dvf_2vm,test_dpf_kvf_dvf,testpmd session and host session are in a session because of alt_session is false

Signed-off-by: zhao,meijuan <meijuanx.zhao@intel.com>
---
 tests/TestSuite_vf_kernel.py | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/tests/TestSuite_vf_kernel.py b/tests/TestSuite_vf_kernel.py
index 204467d..987ee19 100644
--- a/tests/TestSuite_vf_kernel.py
+++ b/tests/TestSuite_vf_kernel.py
@@ -688,6 +688,8 @@ class TestVfKernel(TestCase):
         self.vm0_dut.send_expect("ifconfig %s up " % self.vm0_intf0, "#")
         self.vm0_dut.send_expect("ifconfig %s up " % self.vm0_intf1, "#")
         self.vm0_dut.ports_info[1]['port'].bind_driver('igb_uio')
+   
+        vm0_vf0_mac = self.vm0_dut.ports_info[0]['port'].get_mac_addr()
 
         self.vm0_testpmd.start_testpmd("Default")
         self.vm0_testpmd.execute_cmd('set promisc all on')
@@ -695,7 +697,6 @@ class TestVfKernel(TestCase):
         self.vm0_testpmd.execute_cmd('set verbose 1')
         self.vm0_testpmd.execute_cmd('start')
 
-        vm0_vf0_mac = self.vm0_dut.ports_info[0]['port'].get_mac_addr()
         vm0_vf1_mac = self.vm0_testpmd.get_port_mac(0)
 
         macs = [vm0_vf0_mac, vm0_vf1_mac]
@@ -775,6 +776,10 @@ class TestVfKernel(TestCase):
         self.vm0_dut.ports_info[1]['port'].bind_driver('igb_uio')
         self.vm1_dut.ports_info[0]['port'].bind_driver('igb_uio')
 
+        vm0_vf2_mac = self.vm0_dut.ports_info[2]['port'].get_mac_addr()
+        vm0_vf3_mac = self.vm0_dut.ports_info[3]['port'].get_mac_addr()
+        vm1_vf1_mac = self.vm1_dut.ports_info[1]['port'].get_mac_addr()
+
         # Start DPDK VF0, VF1 in VM0 and VF4 in VM1, enable promisc mode
         self.vm0_testpmd.start_testpmd("Default")
         self.vm0_testpmd.execute_cmd('set promisc all on')
@@ -790,10 +795,7 @@ class TestVfKernel(TestCase):
 
         vm0_vf0_mac = self.vm0_testpmd.get_port_mac(0)
         vm0_vf1_mac = self.vm0_testpmd.get_port_mac(1)
-        vm0_vf2_mac = self.vm0_dut.ports_info[2]['port'].get_mac_addr()
-        vm0_vf3_mac = self.vm0_dut.ports_info[3]['port'].get_mac_addr()
         vm1_vf0_mac = self.vm1_testpmd.get_port_mac(0)
-        vm1_vf1_mac = self.vm1_dut.ports_info[1]['port'].get_mac_addr()
         pf0_mac = self.dut_testpmd.get_port_mac(0)
         pf1_mac = self.dut_testpmd.get_port_mac(1)
 
-- 
1.9.3

             reply	other threads:[~2018-01-15  2:04 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-15  2:05 zhao,meijuan [this message]
2018-01-16 15:06 ` 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=1515981955-17074-1-git-send-email-meijuanx.zhao@intel.com \
    --to=meijuanx.zhao@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).