test/crypto: fix test status when PMD isn't loaded
PATCH 1/1 test/crypto: fix test status when PMD isn't loaded
The return value for a test when the required PMD is not loaded should be TEST_SKIPPED, rather than TEST_FAILED.
--- app/test/test_cryptodev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
app/test/test_cryptodev.c +1 -1
@@ -14504,7 +14504,7 @@ run_cryptodev_testsuite(const char *pmd_name)if (gbl_driver_id ==-1 ) {RTE_LOG (ERR ,USER1 ,"%s PMD must be loaded.\n" , pmd_name); -return TEST_FAILED ; +return TEST_SKIPPED ; } ts.unit_test_suites = malloc(sizeof(struct unit_test_suite *) *
Signature · 1 line
2.25.1
Quoted 9 lines
-----Original Message-----
From: Power, Ciara <[email protected]>
Sent: Tuesday, May 18, 2021 3:20 PM
To: [email protected]
Cc: Zhang, Roy Fan <[email protected]>; Doherty, Declan <[email protected]>; [email protected]; [email protected]; Power, Ciara <[email protected]>
Subject: [PATCH] test/crypto: fix test status when PMD isn't loaded
Quoted 8 lines
The return value for a test when the required PMD is not loaded should be
TEST_SKIPPED, rather thanTEST_FAILED.Fixes 8bfdd8a7f0f1 ("test/crypto: refactor to use sub test suites")Signed-off-by Ciara Power <[email protected]>---
2.25.1
Thomas Monjalon
AppliedQuoted 8 lines
Quoted 6 lines
The return value for a test when the required PMD is not loaded should be
TEST_SKIPPED, rather thanTEST_FAILED.Fixes 8bfdd8a7f0f1 ("test/crypto: refactor to use sub test suites")Signed-off-by Ciara Power <[email protected]>Acked-by Fan Zhang <[email protected]>
Applied, thanks