From: Anoob Joseph Date: Tue, 24 May 2022 14:16:11 +0000 (+0530) Subject: app/test: count tests skipped at setup X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=96b5d4f992ad46e7ce27b1094c4ef24161a04c93;p=dpdk.git app/test: count tests skipped at setup If the setup function returns TEST_SKIPPED, the logs would say the test case is skipped while the summary count would consider it under failed cases. Address this by counting such test cases under 'skipped'. Signed-off-by: Anoob Joseph Acked-by: Akhil Goyal --- diff --git a/app/test/test.c b/app/test/test.c index e69cae3eea..8a7dddde9b 100644 --- a/app/test/test.c +++ b/app/test/test.c @@ -361,6 +361,8 @@ unit_test_suite_runner(struct unit_test_suite *suite) suite->failed++; } else if (test_success == -ENOTSUP) { suite->unsupported++; + } else if (test_success == TEST_SKIPPED) { + suite->skipped++; } else { suite->failed++; }