[igt-dev] [i-g-t] scripts/test_list: Add igt-test-documentation URL to the logs

Bhanuprakash Modem bhanuprakash.modem at intel.com
Mon Jun 12 05:09:54 UTC 2023


For new IGT users, it's helpful to have the URL (in case of
missing documentation) in IGT logs to refer igt documentation
page.

Cc: Mauro Carvalho Chehab <mchehab at kernel.org>
Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem at intel.com>
---
 scripts/test_list.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/scripts/test_list.py b/scripts/test_list.py
index 2810c2358..0d31ac75f 100755
--- a/scripts/test_list.py
+++ b/scripts/test_list.py
@@ -21,6 +21,8 @@ MIN_PYTHON = (3, 6)
 if sys.version_info < MIN_PYTHON:
     sys.exit("Python %s.%s or later is required.\n" % MIN_PYTHON) # pylint: disable=C0209
 
+IGT_DOC_URL = "https://gfx-linux.intel.com/igt-doc.html#igt-test-documentation"
+
 #
 # ancillary functions to sort dictionary hierarchy
 #
@@ -953,6 +955,8 @@ class TestList:
         if run_missing:
             for test_name in run_missing:
                 print(f'Warning: Missing documentation for {test_name}')
+            print(f'Please refer: {IGT_DOC_URL}')
+
         if doc_uneeded or run_missing:
             sys.exit(1)
 
-- 
2.40.0



More information about the igt-dev mailing list