[igt-dev] [PATCH i-g-t v2 19/19] scripts/igt_doc.py: set have_implemented when --files is used
Zbigniew Kempczyński
zbigniew.kempczynski at intel.com
Mon Mar 13 07:10:50 UTC 2023
On Fri, Mar 10, 2023 at 08:41:25PM +0100, Zbigniew Kempczyński wrote:
> From: Mauro Carvalho Chehab <mchehab at kernel.org>
>
> Without that, the option won't work:
>
> $ ../../scripts/igt_doc.py --config xe_test_config.json --files xe_compute.c
> $ Need file names to be processed
>
> Reported-by: Zbigniew Kempczynski <zbigniew.kempczynski at intel.com>
> Signed-off-by: Mauro Carvalho Chehab <mchehab at kernel.org>
> ---
> scripts/igt_doc.py | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/scripts/igt_doc.py b/scripts/igt_doc.py
> index f1b6d64615..67ab7984dd 100755
> --- a/scripts/igt_doc.py
> +++ b/scripts/igt_doc.py
> @@ -293,6 +293,10 @@ class TestList:
> for fname in glob.glob(cfg_file):
> self.filenames.append(fname)
> has_implemented = True
> + else:
> + for cfg_file in self.filenames:
> + if cfg_file:
> + has_implemented = True
>
> has_planned = False
> if include_plan and "planning_files" in self.config:
> --
> 2.34.1
>
Acked-by: Zbigniew Kempczyński <zbigniew.kempczynski at intel.com>
--
Zbigniew
More information about the igt-dev
mailing list