From 268b9b31e7dfbe92f5e81e9b6c4741443294f97e Mon Sep 17 00:00:00 2001 From: Wido den Hollander Date: Mon, 14 Dec 2015 11:33:47 +0100 Subject: [PATCH] test: Fix Libvirt test so that it works on Windows --- .../kvm/resource/wrapper/LibvirtUtilitiesHelperTest.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/hypervisors/kvm/test/com/cloud/hypervisor/kvm/resource/wrapper/LibvirtUtilitiesHelperTest.java b/plugins/hypervisors/kvm/test/com/cloud/hypervisor/kvm/resource/wrapper/LibvirtUtilitiesHelperTest.java index bb7a3f53fa0..a43b342228f 100644 --- a/plugins/hypervisors/kvm/test/com/cloud/hypervisor/kvm/resource/wrapper/LibvirtUtilitiesHelperTest.java +++ b/plugins/hypervisors/kvm/test/com/cloud/hypervisor/kvm/resource/wrapper/LibvirtUtilitiesHelperTest.java @@ -16,6 +16,7 @@ // under the License. package com.cloud.hypervisor.kvm.resource.wrapper; +import java.io.File; import java.util.UUID; import com.cloud.utils.script.Script; @@ -37,8 +38,8 @@ public class LibvirtUtilitiesHelperTest extends TestCase { * Hardcoded paths are not what we want in the longer run */ assertEquals("/root/.ssh", helper.retrieveSshKeysPath()); - assertEquals("/root/.ssh/id_rsa.pub.cloud", helper.retrieveSshPubKeyPath()); - assertEquals("/root/.ssh/id_rsa.cloud", helper.retrieveSshPrvKeyPath()); + assertEquals("/root/.ssh" + File.separator + "id_rsa.pub.cloud", helper.retrieveSshPubKeyPath()); + assertEquals("/root/.ssh" + File.separator + "id_rsa.cloud", helper.retrieveSshPrvKeyPath()); } public void testBashScriptPath() {