Skip to content

Commit

Permalink
[INDY-1666] Fixes as per review: output folder creation.
Browse files Browse the repository at this point in the history
Signed-off-by: NataliaDracheva <[email protected]>
  • Loading branch information
NataliaDracheva committed Sep 5, 2018
1 parent a7c82b6 commit 92dfddb
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions scripts/performance/perf_spike_load.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@


def create_output_directory(folder_path):
output_folder = ""
for folder in folder_path:
output_folder = os.path.join(output_folder, folder)
output_folder = os.path.join(folder_path[0], *folder_path[1:])
try:
output_folder = os.path.expanduser(output_folder)
except OSError:
Expand Down Expand Up @@ -96,7 +94,7 @@ def collect_delays(function_parameters, time_interval, spike_delay=0):


def collect_processes(config):
root_log_folder_name = "Stress_log_{}".format(time.strftime("%m-%d-%y_%H-%M-%S"))
root_log_folder_name = "Spike_log_{}".format(time.strftime("%m-%d-%y_%H-%M-%S"))
processes = list(config["processes"].keys())
functions = {}
for process_name in processes:
Expand Down

0 comments on commit 92dfddb

Please sign in to comment.