Skip to content

Commit f3eb135

Browse files
committed
Make test.sh use REDIS_SERVER everywhere
1 parent 329346b commit f3eb135

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ SKIPS_ARG=${SKIPS_ARG:-}
1111
REDIS_DOCKER=${REDIS_DOCKER:-}
1212

1313
# We need to enable the DEBUG command for redis-server >= 7.0.0
14-
REDIS_MAJOR_VERSION="$(redis-server --version|awk -F'[^0-9]+' '{ print $2 }')"
14+
REDIS_MAJOR_VERSION="$(${REDIS_SERVER} --version|awk -F'[^0-9]+' '{ print $2 }')"
1515
if [ "$REDIS_MAJOR_VERSION" -gt "6" ]; then
1616
ENABLE_DEBUG_CMD="enable-debug-command local"
1717
fi
@@ -98,7 +98,7 @@ if [ -n "${REDIS_DOCKER}" ] ; then
9898
-p ${REDIS_SSL_PORT}:${REDIS_SSL_PORT} \
9999
-v ${tmpdir}:${tmpdir} \
100100
${REDIS_DOCKER} \
101-
redis-server ${tmpdir}/redis.conf
101+
${REDIS_SERVER} ${tmpdir}/redis.conf
102102
else
103103
${REDIS_SERVER} ${tmpdir}/redis.conf
104104
fi

0 commit comments

Comments
 (0)