Cluster / Sentinel test: instances count moved to run.tcl.

This commit is contained in:
antirez 2014-04-29 16:17:15 +02:00
parent 9e422f74a6
commit e8631a6991
3 changed files with 4 additions and 1 deletions

View File

@ -6,6 +6,8 @@ cd tests/cluster
source cluster.tcl source cluster.tcl
source ../instances.tcl source ../instances.tcl
set ::instances_count 5 ; # How many instances we use at max.
proc main {} { proc main {} {
parse_options parse_options
spawn_instance redis $::redis_base_port $::instances_count { spawn_instance redis $::redis_base_port $::instances_count {

View File

@ -22,7 +22,6 @@ set ::sentinel_instances {}
set ::redis_instances {} set ::redis_instances {}
set ::sentinel_base_port 20000 set ::sentinel_base_port 20000
set ::redis_base_port 30000 set ::redis_base_port 30000
set ::instances_count 5 ; # How many Sentinels / Instances we use at max
set ::pids {} ; # We kill everything at exit set ::pids {} ; # We kill everything at exit
set ::dirs {} ; # We remove all the temp dirs at exit set ::dirs {} ; # We remove all the temp dirs at exit
set ::run_matching {} ; # If non empty, only tests matching pattern are run. set ::run_matching {} ; # If non empty, only tests matching pattern are run.

View File

@ -5,6 +5,8 @@
cd tests/sentinel cd tests/sentinel
source ../instances.tcl source ../instances.tcl
set ::instances_count 5 ; # How many instances we use at max.
proc main {} { proc main {} {
parse_options parse_options
spawn_instance sentinel $::sentinel_base_port $::instances_count spawn_instance sentinel $::sentinel_base_port $::instances_count