Skip to contentSkip to conversation

test/crypto: fix test status when PMD isn't loaded

PATCH Applied Ciara Power 3 participants 3 messages May 18, 2021 – May 19, 2021

lore
Share & tools
lore
#0 lore raw

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.

Fixes 8bfdd8a7f0f1 ("test/crypto: refactor to use sub test suites")
---
 app/test/test_cryptodev.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
app/test/test_cryptodev.c +1 -1
index 736952a9e6..c68684b80b 100644
@@ -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
Acked-by on v1 1/1
#1 lore raw
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 than TEST_FAILED.

Fixes 8bfdd8a7f0f1 ("test/crypto: refactor to use sub test suites")

---
2.25.1