Skip to contentSkip to conversation

KVM test: Fix typos in ethtool

PATCH In review Lucas Meneghel Rodrigues 2 participants 2 messages Jan 7, 2011 – Jan 10, 2011 KVM

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 KVM test: Fix typos in ethtool

---
 client/tests/kvm/tests/ethtool.py |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
client/tests/kvm/tests/ethtool.py +3 -3
index 011df29..9708497 100644
@@ -104,11 +104,11 @@ def run_ethtool(test, params, env):
         if src == "guest":
             session.cmd_output(dd_cmd, timeout=360)
             tcpdump_cmd += " and src %s" % guest_ip
-            copy_files_fun = vm.copy_files_from
+            copy_files_from = vm.copy_files_from
         else:
             s, o = commands.getstatusoutput(dd_cmd)
             tcpdump_cmd += " and dst %s" % guest_ip
-            copy_files_fun = vm.copy_files_to
+            copy_files_from = vm.copy_files_to
         if s != 0:
             return (False, "Fail to create file by dd, cmd: %s" % dd_cmd)
 
@@ -125,7 +125,7 @@ def run_ethtool(test, params, env):
 
         logging.info("Start to transfer file")
         try:
-            copy_files_fun(filename, filename):
+            copy_files_from(filename, filename)
         except kvm_utils.SCPError, e:
             return (False, "File transfer failed (%s)" % e)
         logging.info("Transfer file completed")
Signature · 1 line
1.7.3.4
#1 lore raw
Quoted 24 lines · Lucas Meneghel Rodrigues
---
 client/tests/kvm/tests/ethtool.py |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
client/tests/kvm/tests/ethtool.py +2 -2
index 011df29..9708497 100644
@@ -104,11 +104,11 @@ def run_ethtool(test, params, env):
         if src == "guest":
             session.cmd_output(dd_cmd, timeout=360)
             tcpdump_cmd += " and src %s" % guest_ip
-            copy_files_fun = vm.copy_files_from
+            copy_files_from = vm.copy_files_from
         else:
             s, o = commands.getstatusoutput(dd_cmd)
             tcpdump_cmd += " and dst %s" % guest_ip
-            copy_files_fun = vm.copy_files_to
+            copy_files_from = vm.copy_files_to
         if s != 0:
             return (False, "Fail to create file by dd, cmd: %s" % dd_cmd)
 

client/tests/kvm/tests/ethtool.py def run_ethtool(test, params, env): · line 128

Quoted 5 lines
client/tests/kvm/tests/ethtool.py +1 -1
@@ -125,7 +125,7 @@ def run_ethtool(test, params, env):
 
         logging.info("Start to transfer file")
         try:
-            copy_files_fun(filename, filename):
+            copy_files_from(filename, filename)

Does this patch base on a wrong fix ?
there is no 'copy_files_fun(filename, filename):' in original ethtool.py Current ethtool.py also exists an typo, will send a patch to fix this.

Quoted 10 lines
client/tests/kvm/tests/ethtool.py +0 -0
         except kvm_utils.SCPError, e:
             return (False, "File transfer failed (%s)" % e)
         logging.info("Transfer file completed")
Signature · 6 lines
1.7.3.4

_______________________________________________
Autotest mailing list
[email protected]
http://test.kernel.org/cgi-bin/mailman/listinfo/autotest