]> git.lttng.org Git - lttng-tools.git/commitdiff
Tests: Support multi-line diagnostic messages
authorKienan Stewart <kstewart@efficios.com>
Wed, 13 Nov 2024 15:58:26 +0000 (10:58 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 3 Dec 2024 18:34:57 +0000 (13:34 -0500)
Change-Id: Icf16a39814b70ae9a9548add78135118477254ff
Signed-off-by: Kienan Stewart <kstewart@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
tests/utils/lttngtest/tap_generator.py

index c9bd8edaddd14b31992e1dbd9338ba3bc3e18f63..69cbeb47b57b619c7b22fada1f0db795cc636664 100644 (file)
@@ -200,4 +200,5 @@ class TapGenerator:
 
     def diagnostic(self, msg):
         # type: (str) -> None
-        print("# {msg}".format(msg=msg), file=sys.stderr, flush=True)
+        for line in str(msg).split("\n"):
+            print("# {msg}".format(msg=line), file=sys.stderr, flush=True)
This page took 0.029964 seconds and 4 git commands to generate.