Skip to contentSkip to conversation

virt: Fix file_transfer subtest

PATCH New Lucas Meneghel Rodrigues 1 participant 1 message Aug 23, 2011 KVM

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 virt: Fix file_transfer subtest

Turns out we were using a hardcoded cleanup command in the cleanup phase for the file_transfer test, rather than picking up the one available on params. This patch fixes that bug.

---
 client/virt/tests/file_transfer.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
client/virt/tests/file_transfer.py +1 -1
index 5f6672d..2d0ffad 100644
@@ -74,7 +74,7 @@ def run_file_transfer(test, params, env):
 
     finally:
         logging.info('Cleaning temp file on guest')
-        session.cmd("rm -rf %s" % guest_path)
+        session.cmd("%s %s" % (clean_cmd, guest_path))
         logging.info('Cleaning temp files on host')
         try:
             os.remove(host_path)
Signature · 1 line
1.7.6