File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -174,6 +174,14 @@ def run_workloads(self):
174174 f'iodepth-{ int (self .iodepth ):03d} /numjobs-{ int (self .numjobs ):03d} ' )
175175 common .make_remote_dir (self .run_dir )
176176
177+ # If there is a script to run specified in the yaml for this workload
178+ # then add it to the process list before the actual test
179+ script_command : str = test .get ("pre_workload_script" , "" )
180+ if script_command != "" :
181+ logger .debug ("Scheduling script %s to run before this workolad" , script_command )
182+ script_process = common .pdsh (settings .getnodes ("clients" ), script_command )
183+ script_process .wait ()
184+
177185 for i in range (self .volumes_per_client ):
178186 fio_cmd = self .mkfiocmd (i )
179187 p = common .pdsh (settings .getnodes ('clients' ), fio_cmd )
You can’t perform that action at this time.
0 commit comments