test/crypto: fix result when PMD is not loaded
authorCiara Power <ciara.power@intel.com>
Tue, 18 May 2021 14:19:55 +0000 (14:19 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 19 May 2021 08:10:13 +0000 (10:10 +0200)
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")

Signed-off-by: Ciara Power <ciara.power@intel.com>
Acked-by: Fan Zhang <roy.fan.zhang@intel.com>
app/test/test_cryptodev.c

index 736952a..c68684b 100644 (file)
@@ -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 *) *