@@ -71,9 +71,13 @@ def get_configs(path: Path) -> List[str]:
7171 parser .add_argument ('--verbose' , default = 'INFO' , type = str ,
7272 choices = ("ERROR" , "WARNING" , "INFO" , "DEBUG" ),
7373 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' ,
7576 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' )
7781 args = parser .parse_args ()
7882
7983 logging .basicConfig (
@@ -278,7 +282,7 @@ class GenerationArgs:
278282 command = 'python report_generator/report_generator.py ' \
279283 + f'--result-files { name_result_file } ' \
280284 + f'--report-file { name_result_file } .xlsx ' \
281- + '--generation-config report_generator/default_report_gen_config.json'
285+ + '--generation-config ' + args . report
282286 logging .info (command )
283287 stdout , stderr = utils .read_output_from_command (command )
284288 if stderr != '' :
0 commit comments