]> git.droids-corp.org - dpdk.git/commitdiff
app/test: count tests skipped at setup
authorAnoob Joseph <anoobj@marvell.com>
Tue, 24 May 2022 14:16:11 +0000 (19:46 +0530)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 7 Jun 2022 18:49:20 +0000 (20:49 +0200)
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 <anoobj@marvell.com>
Acked-by: Akhil Goyal <gakhil@marvell.com>
app/test/test.c

index e69cae3eea35427e001c39333b030da796e8af6f..8a7dddde9b189401bc0eb874dfb916636e4a432f 100644 (file)
@@ -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++;
                }