aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools/presentation/generator_files.py
diff options
context:
space:
mode:
authorTibor Frank <tifrank@cisco.com>2020-02-18 08:32:45 +0100
committerTibor Frank <tifrank@cisco.com>2020-02-18 09:21:05 +0000
commit8cde48450e63e2816ab482fe371ca7d73b0a228c (patch)
tree0e6599429318b15341f986eeb3cd46fcd5d63e86 /resources/tools/presentation/generator_files.py
parent2c7c12b9812f6f2e4ce88a02b326828072ebb137 (diff)
Report: Detailed test results
Change-Id: I9af4bc9de4f4606449fd257c4321d9cd980d5f01 Signed-off-by: Tibor Frank <tifrank@cisco.com> (cherry picked from commit 8ca63f49d365d589af2a6667cfdceda098b677cc)
Diffstat (limited to 'resources/tools/presentation/generator_files.py')
-rw-r--r--resources/tools/presentation/generator_files.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/resources/tools/presentation/generator_files.py b/resources/tools/presentation/generator_files.py
index d6c7546ae7..47683ea96b 100644
--- a/resources/tools/presentation/generator_files.py
+++ b/resources/tools/presentation/generator_files.py
@@ -88,7 +88,12 @@ def file_test_results(file_spec, input_data, frmt=u"rst"):
"""
base_file_name = f"{file_spec[u'output-file']}"
- rst_header = file_spec.get(u"file-header", u"")
+ rst_header = (
+ u"\n"
+ u".. |br| raw:: html\n\n <br />\n\n\n"
+ u".. |prein| raw:: html\n\n <pre>\n\n\n"
+ u".. |preout| raw:: html\n\n </pre>\n\n"
+ )
start_lvl = file_spec.get(u"data-start-level", 4)
logging.info(f" Generating the file {base_file_name} ...")