Skip to content

Commit 4d2815e

Browse files
[add] Fixed spinning/shutting down of local redis. Made the module check use internal addresses (#101)
1 parent d331733 commit 4d2815e

File tree

3 files changed

+7
-9
lines changed

3 files changed

+7
-9
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.74"
3+
version = "0.1.75"
44
description = "Redis benchmark run helper. A wrapper around Redis and Redis Modules benchmark tools ( ftsb_redisearch, memtier_benchmark, redis-benchmark, aibench, etc... )."
55
authors = ["filipecosta90 <[email protected]>"]
66
readme = "README.md"

redisbench_admin/run_local/run_local.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -155,11 +155,11 @@ def run_local_command_logic(args):
155155
"Some unexpected exception was caught during remote work. Failing test...."
156156
)
157157
logging.critical(sys.exc_info())
158-
# tear-down
159-
logging.info("Tearing down setup")
160-
if redis_process is not None:
161-
redis_process.kill()
162-
logging.info("Tear-down completed")
158+
# tear-down
159+
logging.info("Tearing down setup")
160+
if redis_process is not None:
161+
redis_process.kill()
162+
logging.info("Tear-down completed")
163163

164164
exit(return_code)
165165

redisbench_admin/run_remote/run_remote.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,7 @@ def extract_artifact_version_remote(
8888
server_public_ip, server_public_port, username, private_key
8989
):
9090
commands = [
91-
"redis-cli -h {} -p {} info modules".format(
92-
server_public_ip, server_public_port
93-
),
91+
"redis-cli -h {} -p {} info modules".format("localhost", server_public_port),
9492
]
9593
res = execute_remote_commands(server_public_ip, username, private_key, commands)
9694
recv_exit_status, stdout, stderr = res[0]

0 commit comments

Comments
 (0)