From a7c381437eadec0a7ccb694a6b9461f4f03c1484 Mon Sep 17 00:00:00 2001 From: Navya Date: Thu, 5 Oct 2017 23:01:45 -0700 Subject: KVMFORNFV:Livemigration testcase changes in Yardstick 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 --- yardstick/benchmark/scenarios/compute/qemu_migrate.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/yardstick/benchmark/scenarios/compute/qemu_migrate.py b/yardstick/benchmark/scenarios/compute/qemu_migrate.py index 6cfedc17a..2de1270ef 100644 --- a/yardstick/benchmark/scenarios/compute/qemu_migrate.py +++ b/yardstick/benchmark/scenarios/compute/qemu_migrate.py @@ -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 -- cgit 1.2.3-korg