Skip to content
Snippets Groups Projects
Commit b9c6750f authored by Karthik B S's avatar Karthik B S
Browse files

scripts/test_list: Do not stop the build if documentation fails


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: default avatarJari Tahvanainen <jari.tahvanainen@intel.com>
Signed-off-by: default avatarKarthik B S <karthik.b.s@intel.com>
Reviewed-by: default avatarKamil Konieczny <kamil.konieczny@linux.intel.com>
parent a7043ace
No related branches found
No related tags found
No related merge requests found
Pipeline #1388355 passed
......@@ -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):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment