From: Mark Brown <broonie@kernel.org>
To: Naresh Kamboju <naresh.kamboju@linaro.org>
Cc: Kees Cook <keescook@chromium.org>,
open list <linux-kernel@vger.kernel.org>,
"open list:KERNEL SELFTEST FRAMEWORK"
<linux-kselftest@vger.kernel.org>,
lkft-triage@lists.linaro.org, Shuah Khan <shuah@kernel.org>,
Anders Roxell <anders.roxell@linaro.org>,
Remi Duraffort <remi.duraffort@linaro.org>
Subject: Re: kselftest: Bad test result: from results parsing in LAVA
Date: Wed, 16 Nov 2022 16:02:23 +0000 [thread overview]
Message-ID: <Y3UJj6v8xv2rvMp5@sirena.org.uk> (raw)
In-Reply-To: <CA+G9fYuckvzw_t4iSQ5Kj_FvRb-bfWaT66DazEejrKXePaDGuA@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 2361 bytes --]
On Wed, Nov 16, 2022 at 07:36:10PM +0530, Naresh Kamboju wrote:
> On Wed, 16 Nov 2022 at 18:57, Mark Brown <broonie@kernel.org> wrote:
> > On Wed, Nov 16, 2022 at 05:46:33PM +0530, Naresh Kamboju wrote:
> > > Test results parser showing “Bad test results: “,
> > When reporting an issue can you please try to provide some
> > analysis which goes beyond the level of "I saw an error message"
> > - for example here it's hard to tell if you think you're seeing
> > an issue somewhere in your test automation system or if you're
> > trying to report something in the tests.
> Let me add more information about this,
> Kees Cook, has done the work of a kselftest results parser in perl
> which is in the test-definitions repository. which was working well
> for two years now. please refer to the below commit log and link to
> the kselftest test-definitions [3].
> The new test cases output is not coping up with the old results parser
> and both KernelCI [1] and LKFT [2] using LAVA have noticed.
> Kselftest results parser problem [4].
I'm still not clear if you believe there is an issue in the tests
or in your test infrastructure here. I can't identify any
problem with the test output, everything appears to be within the
KTAP spec:
https://www.kernel.org/doc/html/latest/dev-tools/ktap.html#test-case-result-lines
My best guess is that either this script which the infrastructure
is using or something else that uses the results of the script is
broken when the test description includes spaces. The KTAP spec
says that each test case result is a line in the form:
<result> <number> [<description>][ # [<directive>] [<diagnostic data>]]
where
The description is a description of the test, generally the
name of the test, and can be any string of words (can’t include #).
The description is optional, but recommended.
ie, anything after the space following the test number up to a #
or the end of the line is a valid test description (it's not the
intent but it does appear that the # needs to have a space before
it). You could argue that non-alphabetic characters are out of
spec for the description since any separators between words
aren't themselves words but realistically that'd invalidate a
fairly large subset of the selftests which probably isn't
constructive.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
prev parent reply other threads:[~2022-11-16 16:02 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-16 12:16 Naresh Kamboju
2022-11-16 13:27 ` Mark Brown
2022-11-16 14:06 ` Naresh Kamboju
2022-11-16 16:02 ` Mark Brown [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Y3UJj6v8xv2rvMp5@sirena.org.uk \
--to=broonie@kernel.org \
--cc=anders.roxell@linaro.org \
--cc=keescook@chromium.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=lkft-triage@lists.linaro.org \
--cc=naresh.kamboju@linaro.org \
--cc=remi.duraffort@linaro.org \
--cc=shuah@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®