diff options
author | David Gow <[email protected]> | 2021-06-24 23:58:12 -0700 |
---|---|---|
committer | Shuah Khan <[email protected]> | 2021-06-25 11:31:03 -0600 |
commit | 6d2426b2f258da19fbe5fa1c93a5695460390eac (patch) | |
tree | d7d61a00ca25fea95d9e7b0e3534dbd0fa1bd7a6 /scripts/gdb/linux/tasks.py | |
parent | 824945a5b0ff8260a568b87968172d728446d8f7 (diff) |
kunit: Support skipped tests
The kunit_mark_skipped() macro marks the current test as "skipped", with
the provided reason. The kunit_skip() macro will mark the test as
skipped, and abort the test.
The TAP specification supports this "SKIP directive" as a comment after
the "ok" / "not ok" for a test. See the "Directives" section of the TAP
spec for details:
https://testanything.org/tap-specification.html#directives
The 'success' field for KUnit tests is replaced with a kunit_status
enum, which can be SUCCESS, FAILURE, or SKIPPED, combined with a
'status_comment' containing information on why a test was skipped.
A new 'kunit_status' test suite is added to test this.
Signed-off-by: David Gow <[email protected]>
Tested-by: Marco Elver <[email protected]>
Reviewed-by: Daniel Latypov <[email protected]>
Reviewed-by: Brendan Higgins <[email protected]>
Signed-off-by: Shuah Khan <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/tasks.py')
0 files changed, 0 insertions, 0 deletions