Messages in this thread | | | Subject | Re: [PATCH kunit-fixes v5 1/4] kunit: Support skipped tests | From | Shuah Khan <> | Date | Fri, 25 Jun 2021 10:43:03 -0600 |
| |
On 6/25/21 12:58 AM, David Gow wrote: > 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 <davidgow@google.com> > Tested-by: Marco Elver <elver@google.com> > Reviewed-by: Daniel Latypov <dlatypov@google.com> > Reviewed-by: Brendan Higgins <brendanhiggins@google.com> > --- > > Changes since v4: > https://lore.kernel.org/linux-kselftest/20210611070802.1318911-1-davidgow@google.com/ > - Rebase on top of kselftest/kunit-fixes as of 2021-06-25 > - This is as of commit c1610aae49 ("kunit: tool: internal refactor of parser input handling") >
Thank you for the rebase. Applied to kunix-fixes
thanks, -- Shuah
| |