Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH i-g-t v2] scripts/test_list: Do not stop the build process if documantion fails
@ 2025-03-20 14:05 Karthik B S
  2025-03-20 14:27 ` ✓ Xe.CI.BAT: success for " Patchwork
                   ` (4 more replies)
  0 siblings, 5 replies; 8+ messages in thread
From: Karthik B S @ 2025-03-20 14:05 UTC (permalink / raw)
  To: igt-dev; +Cc: kamil.konieczny, jari.tahvanainen, Karthik B S, Kamil Konieczny

Current approach stops whole build process on a case that there is mistake
on documentation. Let's have entry on logs instead and continue.

Small fix also related multiline data e.g. on Description part.

Signed-off-by: Jari Tahvanainen <jari.tahvanainen@intel.com>
Signed-off-by: Karthik B S <karthik.b.s@intel.com>
Reviewed-by: Kamil Konieczny <kamil.konieczny@linux.intel.com>
---
 scripts/test_list.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/scripts/test_list.py b/scripts/test_list.py
index 867d28400..5f1b4218b 100644
--- a/scripts/test_list.py
+++ b/scripts/test_list.py
@@ -1399,7 +1399,7 @@ class TestList:
 
                 # Handle multi-line field contents
                 if current_field:
-                    match = re.match(r'\s+(.*)', file_line)
+                    match = re.match(r'(.*)', file_line)
                     if match:
                         if handle_section == 'test':
                             dic = self.doc[current_test]
@@ -1408,7 +1408,7 @@ class TestList:
 
                         if dic[current_field] != '':
                             dic[current_field] += " "
-                        dic[current_field] += match.group(1)
+                        dic[current_field] += match.group(1).strip()
                         continue
 
                 # Handle multi-line argument contents
@@ -1427,7 +1427,7 @@ class TestList:
                     continue
 
                 file_line.rstrip(r"\n")
-                sys.exit(f"{fname}:{file_ln + 1}: Error: unrecognized line. Need to add field at %s?\n\t==> %s" %
+                printf(f"{fname}:{file_ln + 1}: Warning: unrecognized line. Need to add field at %s?\n\t==> %s" %
                          (config_origin, file_line))
 
     def show_subtests(self, sort_field):
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2025-03-25  8:25 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-20 14:05 [PATCH i-g-t v2] scripts/test_list: Do not stop the build process if documantion fails Karthik B S
2025-03-20 14:27 ` ✓ Xe.CI.BAT: success for " Patchwork
2025-03-20 14:47 ` ✓ i915.CI.BAT: " Patchwork
2025-03-20 15:09 ` ✗ Xe.CI.Full: failure " Patchwork
2025-03-20 16:19 ` ✗ i915.CI.Full: " Patchwork
2025-03-25  8:25   ` Karthik B S
2025-03-21 18:50 ` [PATCH i-g-t v2] " Kamil Konieczny
2025-03-25  8:22   ` Karthik B S

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox