[igt-dev] [PATCH i-g-t v2 12/13] scripts/test_list.py: skip some internal fields
Mauro Carvalho Chehab
mauro.chehab at linux.intel.com
Thu Jul 13 05:52:47 UTC 2023
On Wed, 12 Jul 2023 21:12:13 +0200
Kamil Konieczny <kamil.konieczny at linux.intel.com> wrote:
> Hi Mauro,
>
> On 2023-07-12 at 15:58:53 +0200, Mauro Carvalho Chehab wrote:
> > From: Mauro Carvalho Chehab <mchehab at kernel.org>
> >
> > both subtest_line and _summary_ are used internally at the script
> > logic. They shouldn't be part of the output.
> >
> > Signed-off-by: Mauro Carvalho Chehab <mchehab at kernel.org>
> > ---
> > scripts/test_list.py | 4 ++++
> > 1 file changed, 4 insertions(+)
> >
> > diff --git a/scripts/test_list.py b/scripts/test_list.py
> > index 1551bc92c010..11aed63cb67a 100644
> > --- a/scripts/test_list.py
> > +++ b/scripts/test_list.py
> > @@ -661,6 +661,10 @@ class TestList:
> > continue
> > if field == "arg":
> > continue
> > + if field == "_summary_":
> > + continue
> > + if field == "subtest_line":
>
> Maybe also _subtest_line_?
Not needed, but maybe I should rename:
arg -> _arg_
subtest_line -> _subtest_line_
and use a regex or add those internal fields into a list.
For now, I'll keep it as-is on this patch, but I think on a cleanup
patch to handle those internal fields (either on this series or on a
new one).
> With or without this,
>
> Reviewed-by: Kamil Konieczny <kamil.konieczny at linux.intel.com>
>
> > + continue
> >
> > print(f":{field}: {self.doc[test][field]}")
> >
> > --
> > 2.40.1
> >
More information about the igt-dev
mailing list