From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by gabe.freedesktop.org (Postfix) with ESMTPS id 94D8D10E31D for ; Fri, 10 Mar 2023 19:42:52 +0000 (UTC) From: =?UTF-8?q?Zbigniew=20Kempczy=C5=84ski?= To: igt-dev@lists.freedesktop.org Date: Fri, 10 Mar 2023 20:41:25 +0100 Message-Id: <20230310194125.14781-20-zbigniew.kempczynski@intel.com> In-Reply-To: <20230310194125.14781-1-zbigniew.kempczynski@intel.com> References: <20230310194125.14781-1-zbigniew.kempczynski@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [igt-dev] [PATCH i-g-t v2 19/19] scripts/igt_doc.py: set have_implemented when --files is used List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" List-ID: From: Mauro Carvalho Chehab 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 Signed-off-by: Mauro Carvalho Chehab --- 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