-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kunit: tool: Support skipped tests in kunit_tool
Add support for the SKIP directive to kunit_tool's TAP parser. Skipped tests now show up as such in the printed summary. The number of skipped tests is counted, and if all tests in a suite are skipped, the suite is also marked as skipped. Otherwise, skipped tests do affect the suite result. Example output: [00:22:34] ======== [SKIPPED] example_skip ======== [00:22:34] [SKIPPED] example_skip_test # SKIP this test should be skipped [00:22:34] [SKIPPED] example_mark_skipped_test # SKIP this test should be skipped [00:22:34] ============================================================ [00:22:34] Testing complete. 2 tests run. 0 failed. 0 crashed. 2 skipped. Signed-off-by: David Gow <davidgow@google.com> Reviewed-by: Daniel Latypov <dlatypov@google.com> Reviewed-by: Brendan Higgins <brendanhiggins@google.com> Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
- Loading branch information
David Gow
authored and
Shuah Khan
committed
Jun 25, 2021
1 parent
6d2426b
commit 5acaf60
Showing
4 changed files
with
105 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
TAP version 14 | ||
1..2 | ||
# Subtest: string-stream-test | ||
1..3 | ||
ok 1 - string_stream_test_empty_on_creation # SKIP all tests skipped | ||
ok 2 - string_stream_test_not_empty_after_add # SKIP all tests skipped | ||
ok 3 - string_stream_test_get_string # SKIP all tests skipped | ||
ok 1 - string-stream-test # SKIP | ||
# Subtest: example | ||
1..2 | ||
# example_simple_test: initializing | ||
ok 1 - example_simple_test # SKIP all tests skipped | ||
# example_skip_test: initializing | ||
ok 2 - example_skip_test # SKIP this test should be skipped | ||
ok 2 - example # SKIP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
TAP version 14 | ||
1..2 | ||
# Subtest: string-stream-test | ||
1..3 | ||
ok 1 - string_stream_test_empty_on_creation | ||
ok 2 - string_stream_test_not_empty_after_add | ||
ok 3 - string_stream_test_get_string | ||
ok 1 - string-stream-test | ||
# Subtest: example | ||
1..2 | ||
# example_simple_test: initializing | ||
ok 1 - example_simple_test | ||
# example_skip_test: initializing | ||
ok 2 - example_skip_test # SKIP this test should be skipped | ||
ok 2 - example |