aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools/robot_output_parser_publish.py
diff options
context:
space:
mode:
authorpmikus <pmikus@cisco.com>2016-09-07 06:32:13 +0100
committerPeter Mikus <pmikus@cisco.com>2016-09-09 07:39:25 +0000
commit131efb9019691347a1a29796fa7f8f192f2bdf9a (patch)
treeb67040548a5219a0210913e4c8934732e9ed6c48 /resources/tools/robot_output_parser_publish.py
parent13809a4ee66ec5e9c92ac3600805251791dfcd2b (diff)
Update robot publish parser
- Fixes line breaks in documentation by replacing new line character with space in wiki format output Change-Id: Ic96e3b8ec70c9dc3b54a15edb22a9cf7a93db038 Signed-off-by: pmikus <pmikus@cisco.com>
Diffstat (limited to 'resources/tools/robot_output_parser_publish.py')
-rwxr-xr-xresources/tools/robot_output_parser_publish.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/resources/tools/robot_output_parser_publish.py b/resources/tools/robot_output_parser_publish.py
index 92038b5903..c3390cbe1e 100755
--- a/resources/tools/robot_output_parser_publish.py
+++ b/resources/tools/robot_output_parser_publish.py
@@ -136,7 +136,8 @@ class ExecutionChecker(ResultVisitor):
elif self.formatting == 'wiki':
sys.stdout.write('|-'+'\n')
sys.stdout.write('|'+test.name+'\n')
- sys.stdout.write('|'+test.doc+'\n')
+ sys.stdout.write('|'+test.doc.replace('\n', ' ').replace('\r',\
+ '')+'\n')
if any("PERFTEST_LONG" in tag for tag in test.tags):
sys.stdout.write('|'+test.message+'\n')
sys.stdout.write('|'+test.status+'\n')