From e0f48202aaf556a8ca17e02017c1c2559a20d433 Mon Sep 17 00:00:00 2001 From: Orion Poplawski Date: Sat, 24 Aug 2024 19:15:22 -0600 Subject: [PATCH] Make test.sh use REDIS_SERVER everywhere --- test.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test.sh b/test.sh index 0a1afb923..220450276 100755 --- a/test.sh +++ b/test.sh @@ -11,7 +11,7 @@ SKIPS_ARG=${SKIPS_ARG:-} REDIS_DOCKER=${REDIS_DOCKER:-} # We need to enable the DEBUG command for redis-server >= 7.0.0 -REDIS_MAJOR_VERSION="$(redis-server --version|awk -F'[^0-9]+' '{ print $2 }')" +REDIS_MAJOR_VERSION="$(${REDIS_SERVER} --version|awk -F'[^0-9]+' '{ print $2 }')" if [ "$REDIS_MAJOR_VERSION" -gt "6" ]; then ENABLE_DEBUG_CMD="enable-debug-command local" fi @@ -98,7 +98,7 @@ if [ -n "${REDIS_DOCKER}" ] ; then -p ${REDIS_SSL_PORT}:${REDIS_SSL_PORT} \ -v ${tmpdir}:${tmpdir} \ ${REDIS_DOCKER} \ - redis-server ${tmpdir}/redis.conf + ${REDIS_SERVER} ${tmpdir}/redis.conf else ${REDIS_SERVER} ${tmpdir}/redis.conf fi