From 61c5b4bf7520080d88ae5a9aad38dee7e0348fa2 Mon Sep 17 00:00:00 2001 From: Rajesh Battala Date: Sat, 17 Aug 2013 19:18:43 +0530 Subject: [PATCH] fix for kvm test failure (cherry picked from commit 6c593b0b16f37951c0c30b2ad3cff69835085fe2) --- .../kvm/resource/LibvirtComputingResourceTest.java | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/plugins/hypervisors/kvm/test/com/cloud/hypervisor/kvm/resource/LibvirtComputingResourceTest.java b/plugins/hypervisors/kvm/test/com/cloud/hypervisor/kvm/resource/LibvirtComputingResourceTest.java index 56d6536efd5..3640030ad8c 100644 --- a/plugins/hypervisors/kvm/test/com/cloud/hypervisor/kvm/resource/LibvirtComputingResourceTest.java +++ b/plugins/hypervisors/kvm/test/com/cloud/hypervisor/kvm/resource/LibvirtComputingResourceTest.java @@ -37,7 +37,6 @@ public class LibvirtComputingResourceTest { String _hyperVisorType = "kvm"; Random _random = new Random(); - /** This test tests if the Agent can handle a vmSpec coming from a <=4.1 management server. @@ -102,14 +101,13 @@ public class LibvirtComputingResourceTest { vmStr += "\n"; vmStr += "\n"; vmStr += "\n"; - vmStr += "\n"; - vmStr += "" + (cpus * speed) + "\n"; - vmStr += "\n"; + //vmStr += "\n"; + //vmStr += "" + (cpus * speed) + "\n"; + //vmStr += "\n"; vmStr += "restart\n"; vmStr += "destroy\n"; vmStr += "destroy\n"; vmStr += "\n"; - assertEquals(vmStr, vm.toString()); } @@ -178,9 +176,9 @@ public class LibvirtComputingResourceTest { vmStr += "\n"; vmStr += "\n"; vmStr += "\n"; - vmStr += "\n"; - vmStr += "" + (cpus * minSpeed) + "\n"; - vmStr += "\n"; + //vmStr += "\n"; + //vmStr += "" + (cpus * minSpeed) + "\n"; + //vmStr += "\n"; vmStr += "restart\n"; vmStr += "destroy\n"; vmStr += "destroy\n";