[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAFd5g45o4B=qxsLqrcSWfs19JBBFVhwYUxYMET7NoL9zFBaNxQ@mail.gmail.com>
Date: Tue, 7 Dec 2021 15:03:00 -0500
From: Brendan Higgins <brendanhiggins@...gle.com>
To: Daniel Latypov <dlatypov@...gle.com>
Cc: davidgow@...gle.com, linux-kernel@...r.kernel.org,
kunit-dev@...glegroups.com, linux-kselftest@...r.kernel.org,
skhan@...uxfoundation.org
Subject: Re: [PATCH] kunit: tool: fix --json output for skipped tests
On Fri, Oct 8, 2021 at 7:24 PM Daniel Latypov <dlatypov@...gle.com> wrote:
>
> Currently, KUnit will report SKIPPED tests as having failed if one uses
> --json.
>
> Add the missing if statement to set the appropriate status ("SKIP").
> See https://api.kernelci.org/schema-test-case.html:
> "status": {
> "type": "string",
> "description": "The status of the execution of this test case",
> "enum": ["PASS", "FAIL", "SKIP", "ERROR"],
> "default": "PASS"
> },
> with this, we now can properly produce all four of the statuses.
>
> Fixes: 5acaf6031f53 ("kunit: tool: Support skipped tests in kunit_tool")
> Signed-off-by: Daniel Latypov <dlatypov@...gle.com>
Reviewed-by: Brendan Higgins <brendanhiggins@...gle.com>
Thanks!
Powered by blists - more mailing lists