We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 61853a9 commit a405979Copy full SHA for a405979
1 file changed
runtest
@@ -1,9 +1,14 @@
1
#!/bin/sh
2
-TCL=tclsh8.5
3
-which $TCL
4
-if [ "$?" != "0" ]
+TCL_VERSIONS="8.5 8.6"
+TCLSH=""
+
5
+for VERSION in $TCL_VERSIONS; do
6
+ TCL=`which tclsh$VERSION 2>/dev/null` && TCLSH=$TCL
7
+done
8
9
+if [ -z $TCLSH ]
10
then
- echo "You need '$TCL' in order to run the Redis test"
11
+ echo "You need tcl 8.5 or newer in order to run the Redis test"
12
exit 1
13
fi
-$TCL tests/test_helper.tcl $*
14
+$TCLSH tests/test_helper.tcl $*
0 commit comments