@@ -32,7 +32,8 @@ def run_command_logic(args):
3232 requests = args .requests
3333 continue_on_error = args .continue_on_error
3434 run_only_steps = None
35- skip_teardown = args .skip_teardown
35+ skip_setup = args .skip_setup_commands
36+ skip_teardown = args .skip_teardown_commands
3637 if args .run_only_steps != "" :
3738 run_only_steps = args .run_only_steps .split ("," )
3839
@@ -128,7 +129,10 @@ def run_command_logic(args):
128129 progress = tqdm (unit = "bench steps" , total = total_steps )
129130 for repetition in range (1 , args .repetitions + 1 ):
130131 if benchmark_repetitions_require_teardown is True or repetition == 1 :
131- aux_client = run_setup_commands (args , "setup" , benchmark_config ["setup" ]["commands" ], oss_cluster_mode )
132+ if skip_setup is False :
133+ aux_client = run_setup_commands (args , "setup" , benchmark_config ["setup" ]["commands" ], oss_cluster_mode )
134+ else :
135+ print ("Implicitly skipping setup commands due to --skip-setup-commands flag" )
132136 if "setup" in run_stages_inputs :
133137 run_setup_step = True
134138 if run_only_steps is not None and "setup" not in run_only_steps :
@@ -169,7 +173,7 @@ def run_command_logic(args):
169173 print ("Running tear down steps..." )
170174 run_setup_commands (args , "tear down" , benchmark_config ["teardown" ]["commands" ], oss_cluster_mode )
171175 else :
172- print ("Implicitly skipping teardown step due to --skip-teardown flag" )
176+ print ("Implicitly skipping teardown commands due to --skip-teardown-commands flag" )
173177
174178 progress .update ()
175179 end_time = dt .datetime .now ()
0 commit comments