From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by gabe.freedesktop.org (Postfix) with ESMTPS id D6A6410EE02 for ; Thu, 30 Mar 2023 13:06:08 +0000 (UTC) Received: from linux.intel.com (pludynia-mobl.ger.corp.intel.com [10.252.3.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by linux.intel.com (Postfix) with ESMTPS id 84A9B580DAC for ; Thu, 30 Mar 2023 06:05:24 -0700 (PDT) Received: from maurocar by linux.intel.com with local (Exim 4.96) (envelope-from ) id 1phrxy-00BSaq-1K for igt-dev@lists.freedesktop.org; Thu, 30 Mar 2023 15:05:22 +0200 From: Mauro Carvalho Chehab To: igt-dev@lists.freedesktop.org Date: Thu, 30 Mar 2023 15:05:13 +0200 Message-Id: <20230330130518.2731441-8-mauro.chehab@linux.intel.com> In-Reply-To: <20230330130518.2731441-1-mauro.chehab@linux.intel.com> References: <20230330130518.2731441-1-mauro.chehab@linux.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [igt-dev] [PATCH i-g-t v3 07/12] scripts/test_list.py: better handle documentation validation issues 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 Produce warnings and exit with an error when test plan is out of sync. Signed-off-by: Mauro Carvalho Chehab Reviewed-by: Kamil Konieczny --- scripts/test_list.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/scripts/test_list.py b/scripts/test_list.py index 73c1794caec5..7d35deda3329 100755 --- a/scripts/test_list.py +++ b/scripts/test_list.py @@ -803,16 +803,14 @@ class TestList: run_missing.append(run_test) if doc_uneeded: - print("Unused documentation") for test_name in doc_uneeded: - print(test_name) + print(f"Warning: Documented {test_name} doesn't exist on source files") if run_missing: - if doc_uneeded: - print() - print("Missing documentation") for test_name in run_missing: - print(test_name) + print(f'Warning: Missing documentation for {test_name}') + if doc_uneeded or run_missing: + sys.exit(1) # # File handling methods -- 2.39.2