File tree 1 file changed +19
-0
lines changed
1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -705,8 +705,27 @@ def sig_term_handler():
705
705
logger .info ("Got SIGTERM signal" )
706
706
shutdown ()
707
707
708
+ def process_html_filename (options ) -> None :
709
+ num_users = options .num_users
710
+ spawn_rate = options .spawn_rate
711
+ run_time = options .run_time
712
+
713
+ option_mapping = {
714
+ "{u}" : num_users ,
715
+ "{r}" : spawn_rate ,
716
+ "{t}" : run_time ,
717
+ }
718
+
719
+ html_filename = options .html_file
720
+
721
+ for option_term , option_value in option_mapping .items ():
722
+ html_filename = html_filename .replace (option_term , str (int (option_value )))
723
+
724
+ options .html_file = html_filename
725
+
708
726
def save_html_report ():
709
727
html_report = get_html_report (environment , show_download_link = False )
728
+ process_html_filename (options )
710
729
logger .info ("writing html report to file: %s" , options .html_file )
711
730
with open (options .html_file , "w" , encoding = "utf-8" ) as file :
712
731
file .write (html_report )
You can’t perform that action at this time.
0 commit comments