From: Pallantla Poornima Date: Thu, 15 Nov 2018 06:34:57 +0000 (+0000) Subject: test/power: skip KVM autotest if cannot run X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=f88bb9a674c74adac91b58ab2253b1752b34c8ac;p=dpdk.git test/power: skip KVM autotest if cannot run power_kvm_vm_autotest should run on kvm vm and virtio-ports should exist, if not test should skip. Hence changed return as TEST_SKIPPED. Fixes: 0ea2dd4409 ("test: skip when required lib not available") Cc: stable@dpdk.org Signed-off-by: Pallantla Poornima Acked-by: Reshma Pattan --- diff --git a/test/test/test_power_kvm_vm.c b/test/test/test_power_kvm_vm.c index bce706ded0..785cd048df 100644 --- a/test/test/test_power_kvm_vm.c +++ b/test/test/test_power_kvm_vm.c @@ -101,7 +101,7 @@ test_power_kvm_vm(void) "Power management environment\n", TEST_POWER_VM_LCORE_ID); rte_power_unset_env(); - return -1; + return TEST_SKIPPED; } /* Test initialisation of previously initialised lcore */