Skip to content

Commit

Permalink
change hardcoded path to config for spike load test to parameter
Browse files Browse the repository at this point in the history
Signed-off-by: olga.zheregelya <[email protected]>
  • Loading branch information
ozheregelya committed Dec 11, 2018
1 parent d48186c commit 88094a6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/performance/perf_load/__version__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"""

__title__ = 'indy-perf-load'
__version_info__ = (1, 1, 2)
__version_info__ = (1, 1, 3)
__version__ = '.'.join(map(str, __version_info__))
__description__ = 'Indy node performance load'
__long_description__ = __description__
Expand Down
4 changes: 3 additions & 1 deletion scripts/performance/perf_load/perf_spike_load.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
parser.add_argument('--file', required=False, default="spike_log.csv",
help="Output CSV file name with logs", dest="log_file")

parser.add_argument('--spike_config', required=False, default="config_perf_spike_load.yml",
help="Path to config for spike load test in YML format", dest="spike_config")

def create_output_directory(folder_path):
output_folder = os.path.join(folder_path[0], *folder_path[1:])
Expand Down Expand Up @@ -113,7 +115,7 @@ def run_stable_process(process_name, config, process_time, interval=0):


def start_profile():
with open("config_perf_spike_load.yml") as file:
with open(args.spike_config) as file:
test_config = yaml.load(file)
logging_folder = create_output_directory([test_config["common"]["out_dir"], "Spike_log"])
logging_file_path = os.path.join(logging_folder, args.log_file)
Expand Down

0 comments on commit 88094a6

Please sign in to comment.