diff mbox series

[v3,2/3] testinfo.pl: Support tag values on more lines

Message ID 20220114205309.14409-3-pvorel@suse.cz
State Accepted
Headers show
Series known-fail test tag | expand

Commit Message

Petr Vorel Jan. 14, 2022, 8:53 p.m. UTC
if value is too long, i.e. adding URL:

.tags = (const struct tst_tag[]) {
	{"known-fail", "ustat() is known to fail with EINVAL on Btrfs, see "
		"https://lore.kernel.org/linux-btrfs/e7e867b8-b57a-7eb2-2432-1627bd3a88fb@toxicpanda.com/"
	},
	{}

Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
 docparse/testinfo.pl | 6 ++++++
 1 file changed, 6 insertions(+)
diff mbox series

Patch

diff --git a/docparse/testinfo.pl b/docparse/testinfo.pl
index 8712a530f8..67e435d794 100755
--- a/docparse/testinfo.pl
+++ b/docparse/testinfo.pl
@@ -453,6 +453,12 @@  sub content_all_tests
 				$v = html_a($url, $v);
 			}
 
+			# tag value value can be split into more lines if too long
+			# i.e. URL in known-fail
+			for (@$tag[2 .. $#$tag]) {
+				$v .= " $_";
+			}
+
 			$content .= "\n|" . reference($k) . "\n|$v\n";
 			$tmp2 = 1;
 		}