aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools/presentation/generator_tables.py
diff options
context:
space:
mode:
authorTibor Frank <tifrank@cisco.com>2020-03-06 12:59:01 +0100
committerTibor Frank <tifrank@cisco.com>2020-03-09 16:00:46 +0000
commitc4fe133e5d81ce3543809355f8b560f026ee7725 (patch)
tree3b908a5e4db243848e92dcfc5dbee48745b7976d /resources/tools/presentation/generator_tables.py
parentb6fc5905126a03144b9cbb62318cdc231711c0b5 (diff)
Report: Detailed test results
- 3rd level Change-Id: Iae8141ff64ae61711ae8e69b67a92cfcb0f3f937 Signed-off-by: Tibor Frank <tifrank@cisco.com> (cherry picked from commit 6420897309b9e677f9352e5bfee007b3421eb2c5)
Diffstat (limited to 'resources/tools/presentation/generator_tables.py')
-rw-r--r--resources/tools/presentation/generator_tables.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/resources/tools/presentation/generator_tables.py b/resources/tools/presentation/generator_tables.py
index 555747df84..5058cbf991 100644
--- a/resources/tools/presentation/generator_tables.py
+++ b/resources/tools/presentation/generator_tables.py
@@ -354,7 +354,8 @@ def table_merged_details(table, input_data):
# Write the data to file
if table_lst:
- file_name = f"{table[u'output-file']}_{suite_name}.csv"
+ separator = u"" if table[u'output-file'].endswith(u"/") else u"_"
+ file_name = f"{table[u'output-file']}{separator}{suite_name}.csv"
logging.info(f" Writing file: {file_name}")
with open(file_name, u"wt") as file_handler:
file_handler.write(u",".join(header) + u"\n")