aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools/presentation/generator_files.py
diff options
context:
space:
mode:
authorTibor Frank <tifrank@cisco.com>2020-02-27 11:47:55 +0100
committerTibor Frank <tifrank@cisco.com>2020-02-27 12:22:53 +0000
commitd10c83488ecc30f5b870e36c2b7c9a9449eac6aa (patch)
treeae52c1c0df3609b6e15eb6244c2750ecd9d5d4f6 /resources/tools/presentation/generator_files.py
parent50ca85359a75da29371ea3b97d2bccf7653b99d6 (diff)
Report: Do not show failed tests in "Detailed Test Results"
Change-Id: I6019af7f0b2af29c876a39a3243fe29843e3b1da Signed-off-by: Tibor Frank <tifrank@cisco.com>
Diffstat (limited to 'resources/tools/presentation/generator_files.py')
-rw-r--r--resources/tools/presentation/generator_files.py12
1 files changed, 7 insertions, 5 deletions
diff --git a/resources/tools/presentation/generator_files.py b/resources/tools/presentation/generator_files.py
index e1ddef013d..ec142eded4 100644
--- a/resources/tools/presentation/generator_files.py
+++ b/resources/tools/presentation/generator_files.py
@@ -123,7 +123,6 @@ def file_test_results(file_spec, input_data, frmt=u"rst"):
if tests.empty:
return
tests = input_data.merge_data(tests)
- tests.sort_index(inplace=True)
suites = input_data.filter_data(
file_spec,
@@ -162,12 +161,14 @@ def file_test_results(file_spec, input_data, frmt=u"rst"):
file_handler.write(f"\n{suite[u'name']}\n{title_line}\n")
if _tests_in_suite(suite[u"name"], tests):
- file_handler.write(f"\n{suite[u'name']}\n{title_line}\n")
- file_handler.write(
- f"\n{suite[u'doc']}\n".replace(u'|br|', u'\n\n -')
- )
for tbl_file in table_lst:
if suite[u"name"] in tbl_file:
+ file_handler.write(
+ f"\n{suite[u'name']}\n{title_line}\n"
+ )
+ file_handler.write(
+ f"\n{suite[u'doc']}\n".replace(u'|br|', u'\n\n -')
+ )
if frmt == u"html":
file_handler.write(
f"\n.. include:: {tbl_file.split(u'/')[-1]}\n"
@@ -178,6 +179,7 @@ def file_test_results(file_spec, input_data, frmt=u"rst"):
file_latex=tbl_file,
file_html=tbl_file.split(u"/")[-1])
)
+ break
logging.info(u" Done.")