KVMFORNFV:Livemigration testcase changes in Yardstick 29/44729/1
authorNavya <navyax.bathula@intel.com>
Fri, 6 Oct 2017 06:01:45 +0000 (23:01 -0700)
committerRoss Brattain <ross.b.brattain@intel.com>
Tue, 10 Oct 2017 22:51:32 +0000 (15:51 -0700)
This patch includes changing the function call to place the
respective bash file to the given TARGET_SCRIPT path.

Change-Id: Iba2adf4bdb6d9045493f5099e29ade4e8e6b5cd3
Signed-off-by: Navya <navyax.bathula@intel.com>
yardstick/benchmark/scenarios/compute/qemu_migrate.py

index 6cfedc1..2de1270 100644 (file)
@@ -26,7 +26,7 @@ class QemuMigrate(base.Scenario):
     __scenario_type__ = "QemuMigrate"
 
     TARGET_SCRIPT = "qemu_migrate_benchmark.bash"
-    WORKSPACE = "/root/workspace"
+    WORKSPACE = "/root/workspace/"
     REBOOT_CMD_PATTERN = r";\s*reboot\b"
 
     def __init__(self, scenario_cfg, context_cfg):
@@ -89,7 +89,8 @@ class QemuMigrate(base.Scenario):
         self.target_script = pkg_resources.resource_filename(
             "yardstick.benchmark.scenarios.compute",
             QemuMigrate.TARGET_SCRIPT)
-        self.host.put_file(self.target_script, "~/qemu_migrate_benchmark.sh")
+        self.host._put_file_shell(
+            self.target_script, "~/qemu_migrate_benchmark.sh")
 
         self.setup_done = True