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 <rohit.yadav@shapeblue.com>
This commit is contained in:
Rohit Yadav 2022-07-07 14:36:15 +05:30 committed by GitHub
parent 67e941f690
commit 3d316546bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -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();