test: fix to skip power kvm vm autotest

Message ID 1542187466-5437-1-git-send-email-pallantlax.poornima@intel.com (mailing list archive)
State Superseded, archived
Delegated to: Thomas Monjalon
Headers
Series test: fix to skip power kvm vm autotest |

Checks

Context Check Description
ci/checkpatch success coding style OK
ci/Intel-compilation success Compilation OK
ci/mellanox-Performance-Testing success Performance Testing PASS
ci/intel-Performance-Testing success Performance Testing PASS

Commit Message

Poornima, PallantlaX Nov. 14, 2018, 9:24 a.m. UTC
  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 <pallantlax.poornima@intel.com>
---
 test/test/test_power_kvm_vm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Comments

Pattan, Reshma Nov. 14, 2018, 2:01 p.m. UTC | #1
> -----Original Message-----
> From: Poornima, PallantlaX
> Sent: Wednesday, November 14, 2018 9:24 AM
> To: dev@dpdk.org
> Cc: Pattan, Reshma <reshma.pattan@intel.com>; Hunt, David
> <david.hunt@intel.com>; Poornima, PallantlaX
> <pallantlax.poornima@intel.com>; stable@dpdk.org
> Subject: [PATCH] test: fix to skip power kvm vm autotest
> 
> Power_kvm_vm_autotest should run on kvm vm and virtio-ports should exist,if
> not test should skip.

Small nits space after ',' and  in Power_kvm_vm_autotest name P is small letter. 
Other than that 

Acked-by: Reshma Pattan <reshma.pattan@intel.com>
  

Patch

diff --git a/test/test/test_power_kvm_vm.c b/test/test/test_power_kvm_vm.c
index bce706ded..785cd048d 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 */