@@ -71,9 +71,13 @@ def get_configs(path: Path) -> List[str]:
71
71
parser .add_argument ('--verbose' , default = 'INFO' , type = str ,
72
72
choices = ("ERROR" , "WARNING" , "INFO" , "DEBUG" ),
73
73
help = 'Print additional information during benchmarks running' )
74
- parser .add_argument ('--report' , default = False , action = 'store_true' ,
74
+ parser .add_argument ('--report' , nargs = '?' , default = None , metavar = 'ConfigPath' , type = str ,
75
+ const = 'report_generator/default_report_gen_config.json' ,
75
76
help = 'Create an Excel report based on benchmarks results. '
76
- 'Need "openpyxl" library' )
77
+ 'If the parameter is not set, the reporter will not be launched. '
78
+ 'If the parameter is set and the config is not specified, '
79
+ 'the default config will be used. '
80
+ 'Need "openpyxl" library' )
77
81
args = parser .parse_args ()
78
82
79
83
logging .basicConfig (
@@ -278,7 +282,7 @@ class GenerationArgs:
278
282
command = 'python report_generator/report_generator.py ' \
279
283
+ f'--result-files { name_result_file } ' \
280
284
+ f'--report-file { name_result_file } .xlsx ' \
281
- + '--generation-config report_generator/default_report_gen_config.json'
285
+ + '--generation-config ' + args . report
282
286
logging .info (command )
283
287
stdout , stderr = utils .read_output_from_command (command )
284
288
if stderr != '' :
0 commit comments