X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=resources%2Ftools%2Fpresentation%2Fgenerator_tables.py;h=835e6cf0127f7a78ac761aedd51a40fdeb22adb7;hb=6420897309b9e677f9352e5bfee007b3421eb2c5;hp=6f075d1f9f7f57fdcb34e1ac268f48e19fca0912;hpb=ef178b5309a19e3438a8aea2d3e23810099f5d77;p=csit.git diff --git a/resources/tools/presentation/generator_tables.py b/resources/tools/presentation/generator_tables.py index 6f075d1f9f..835e6cf012 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")