Skip to content

Commit 019d08a

Browse files
[fix] fixed static project being redisearch for it to be loaded from the config (#6)
1 parent 935d69e commit 019d08a

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "redisbench-admin"
3-
version = "0.1.9"
3+
version = "0.1.10"
44
description = "Redis benchmark run helper. A wrapper around ftsb_redisearch ( future versions will also support redis-benchmark and memtier_benchmark )."
55
authors = ["filipecosta90 <[email protected]>"]
66
readme = "README.md"

redisbench_admin/run/run.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,11 @@ def run_command_logic(args):
4343
print('Error while retrieving {}! Exiting..'.format(config_filename))
4444
sys.exit(1)
4545

46+
project = benchmark_config["project"]
4647
test_name = benchmark_config["name"]
47-
print("Preparing to run test: {}.\nDescription: {}.".format(test_name,
48-
benchmark_config["description"]))
48+
description = benchmark_config["description"]
49+
print("Testing project: {}".format(project))
50+
print("Preparing to run test: {}.\nDescription: {}.".format(test_name, description))
4951

5052
deployment_requirements = benchmark_config["deployment-requirements"]
5153
required_utilities_list = deployment_requirements["utilities"].keys()
@@ -60,7 +62,7 @@ def run_command_logic(args):
6062
if benchmark_tool_path is None:
6163
benchmark_tool_path = benchmark_tool
6264

63-
s3_bucket_path = "redisearch/results/".format(test_name)
65+
s3_bucket_path = "{project}/results/{test_name}/".format(project=project,test_name=test_name)
6466
if args.output_file_prefix != "":
6567
s3_bucket_path = "{}{}/".format(s3_bucket_path, args.output_file_prefix)
6668
s3_uri = "https://s3.amazonaws.com/{bucket_name}/{bucket_path}".format(bucket_name=s3_bucket_name,

0 commit comments

Comments
 (0)