• David Gow's avatar
    kunit: tool: Support skipped tests in kunit_tool · 5acaf603
    David Gow authored
    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: default avatarDavid Gow <davidgow@google.com>
    Reviewed-by: default avatarDaniel Latypov <dlatypov@google.com>
    Reviewed-by: default avatarBrendan Higgins <brendanhiggins@google.com>
    Signed-off-by: default avatarShuah Khan <skhan@linuxfoundation.org>
    5acaf603
test_skip_all_tests.log 562 Bytes