[dts] [PATCH V1] tests/vf kernel : fix quote incorrect session object

zhao,meijuan meijuanx.zhao at intel.com
Thu Nov 22 07:33:00 CET 2018


change session object,when check vm1 nic status,it can work,not only
check vm0 nic status

Signed-off-by: zhao,meijuan <meijuanx.zhao at intel.com>
---
 tests/TestSuite_vf_kernel.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/TestSuite_vf_kernel.py b/tests/TestSuite_vf_kernel.py
index 06ca013..a46a07b 100644
--- a/tests/TestSuite_vf_kernel.py
+++ b/tests/TestSuite_vf_kernel.py
@@ -482,7 +482,7 @@ class TestVfKernel(TestCase):
             if "Network is down" in out:
                 print GREEN(out)
                 print GREEN("Try again")
-                self.vm0_dut.restore_interfaces_linux()
+                session.restore_interfaces_linux()
             else:
                 out = session.send_expect("ethtool %s" % intf, "#")
                 if "Link detected: yes" in out:
-- 
2.17.2



More information about the dts mailing list