summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRami Rosen <rami.rosen@intel.com>2017-01-08 10:08:44 +0200
committerMarvin Liu <yong.liu@intel.com>2017-01-11 16:20:54 +0800
commit7f21ec42959a9991b6ca220196b9a5c65c92c05c (patch)
treec286fb105b4de8abe64ec0b3a097d04b21fcf2ff
parent1788092c5c58511a1e766e225b1d6a4f0c6e0c18 (diff)
downloaddts-16.11.zip
dts-16.11.tar.gz
dts-16.11.tar.xz
tests sriov_kvm: fix a typo issue16.11
This patch fixes a typo in sriov kvm TestSuite (use "self" instrad of "slef"). Signed-off-by: Rami Rosen <rami.rosen@intel.com>
-rw-r--r--tests/TestSuite_sriov_kvm.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/TestSuite_sriov_kvm.py b/tests/TestSuite_sriov_kvm.py
index 41af4dd..b74da5e 100644
--- a/tests/TestSuite_sriov_kvm.py
+++ b/tests/TestSuite_sriov_kvm.py
@@ -469,7 +469,7 @@ class TestSriovKvm(TestCase):
self.vm2.stop()
self.vm2 = None
- if getattr(slef, 'vm3', None):
+ if getattr(self, 'vm3', None):
self.vm3.stop()
self.vm3 = None
@@ -482,7 +482,7 @@ class TestSriovKvm(TestCase):
self.dut.destroy_sriov_vfs_by_port(self.used_dut_port)
port = self.ports_info[self.used_dut_port]['port']
port.bind_driver('igb_uio')
- slef.used_dut_port = None
+ self.used_dut_port = None
for port_id in self.dut_ports:
port = self.dut.ports_info[port_id]['port']
@@ -1247,7 +1247,7 @@ class TestSriovKvm(TestCase):
self.destroy_2vm_2vf_env()
if self.setup_2vm_2pf_env_flag == 1:
- slef.destroy_2vm_2pf_env()
+ self.destroy_2vm_2pf_env()
if self.setup_4vm_prerequisite_flag == 1:
self.destroy_four_vm_common_prerequisite()