[dts] [PATCH] tests: create the vm2 DUT with vm2 in sriov kvm TestSuite.

Rami Rosen rami.rosen at intel.com
Sat Jan 7 21:51:56 CET 2017


This patch fixes the setup_4vm_4vf_env() method in sriov kvm TestSuite 
to use vm2 for creating vm2 DUT, instead of wrongly using vm1 for this.

Signed-off-by: Rami Rosen <rami.rosen at intel.com>
---
 tests/TestSuite_sriov_kvm.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/TestSuite_sriov_kvm.py b/tests/TestSuite_sriov_kvm.py
index 41af4dd..43d5ccf 100644
--- a/tests/TestSuite_sriov_kvm.py
+++ b/tests/TestSuite_sriov_kvm.py
@@ -441,7 +441,7 @@ class TestSriovKvm(TestCase):
 
             self.vm2 = QEMUKvm(self.dut, 'vm2', 'sriov_kvm')
             self.vm2.set_vm_device(driver='pci-assign', **vf2_prop)
-            self.vm_dut_2 = self.vm1.start()
+            self.vm_dut_2 = self.vm2.start()
             if self.vm_dut_2 is None:
                 raise Exception("Set up VM2 ENV failed!")
 
-- 
1.9.1



More information about the dts mailing list