-# Copyright (c) 2020 Cisco and/or its affiliates.
+# Copyright (c) 2021 Cisco and/or its affiliates.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at:
u"\n .. raw:: latex\n\n"
u" \\csvautolongtable{{{file_latex}}}\n\n")
-REGEX_NIC_SHORT = re.compile(r'(\d*ge\dp\d)(\D*\d*[a-z]*)-')
+REGEX_NIC_SHORT = re.compile(r'(\d*ge\dp\d)([a-z]*\d*[a-z]*)-')
def generate_files(spec, data):
logging.error(
f" No tables to include in {table_set}. Skipping."
)
- return
+ continue
logging.info(u" Creating the test data set...")
tests = input_data.filter_data(
continue_on_error=True
)
if tests.empty:
- return
+ continue
tests = input_data.merge_data(tests)
tests.sort_index(inplace=True)
data_set=u"suites"
)
if suites.empty:
- return
+ continue
suites = input_data.merge_data(suites)
suites.sort_index(inplace=True)
chapters[chapter_l1][chapter_l2][nic][u"tables"].append(
(
table_lst.pop(idx),
- suite[u"doc"].replace(u'|br|', u'\n\n -')
+ suite[u"doc"].replace(u'"', u"'").
+ replace(u'\n', u' ').
+ replace(u'\r', u'').
+ replace(u'*[', u'\n\n - *[').
+ replace(u"*", u"**").
+ replace(u'\n\n - *[', u' - *[', 1)
)
)
break
-
- print(chapters)
-
titles = {
# VPP Perf, MRR
u"container_memif": u"LXC/DRC Container Memif",