This is an automated email from the ASF dual-hosted git repository.

rohit pushed a commit to branch 4.17
in repository https://gitbox.apache.org/repos/asf/cloudstack.git


The following commit(s) were added to refs/heads/4.17 by this push:
     new 3d316546bf kvm: skip test that can't run and pass on M1 mac (#6537)
3d316546bf is described below

commit 3d316546bf6609f3b0a430b02224a1445cca57aa
Author: Rohit Yadav <[email protected]>
AuthorDate: Thu Jul 7 14:36:15 2022 +0530

    kvm: skip test that can't run and pass on M1 mac (#6537)
    
    This fixes the build issue on M1 mac/osx.
    
    Signed-off-by: Rohit Yadav <[email protected]>
---
 .../cloud/hypervisor/kvm/resource/LibvirtComputingResourceTest.java    | 3 +++
 1 file changed, 3 insertions(+)

diff --git 
a/plugins/hypervisors/kvm/src/test/java/com/cloud/hypervisor/kvm/resource/LibvirtComputingResourceTest.java
 
b/plugins/hypervisors/kvm/src/test/java/com/cloud/hypervisor/kvm/resource/LibvirtComputingResourceTest.java
index 1054c76f88..6741c61eb8 100644
--- 
a/plugins/hypervisors/kvm/src/test/java/com/cloud/hypervisor/kvm/resource/LibvirtComputingResourceTest.java
+++ 
b/plugins/hypervisors/kvm/src/test/java/com/cloud/hypervisor/kvm/resource/LibvirtComputingResourceTest.java
@@ -5590,6 +5590,9 @@ public class LibvirtComputingResourceTest {
 
     @Test
     public void getMemoryFreeInKBsTestDomainReturningIncompleteArray() throws 
LibvirtException {
+        if (!System.getProperty("os.name").equals("Linux")) {
+            return;
+        }
         LibvirtComputingResource libvirtComputingResource = new 
LibvirtComputingResource();
 
         MemoryStatistic[] mem = createMemoryStatisticFreeMemory100();

Reply via email to