From e8631a69917f1c0581a28edac8dcdf98cca82e18 Mon Sep 17 00:00:00 2001 From: antirez Date: Tue, 29 Apr 2014 16:17:15 +0200 Subject: [PATCH] Cluster / Sentinel test: instances count moved to run.tcl. --- tests/cluster/run.tcl | 2 ++ tests/instances.tcl | 1 - tests/sentinel/run.tcl | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/cluster/run.tcl b/tests/cluster/run.tcl index acb6d49cd..fe600b919 100644 --- a/tests/cluster/run.tcl +++ b/tests/cluster/run.tcl @@ -6,6 +6,8 @@ cd tests/cluster source cluster.tcl source ../instances.tcl +set ::instances_count 5 ; # How many instances we use at max. + proc main {} { parse_options spawn_instance redis $::redis_base_port $::instances_count { diff --git a/tests/instances.tcl b/tests/instances.tcl index 7cc798dcd..4575c8388 100644 --- a/tests/instances.tcl +++ b/tests/instances.tcl @@ -22,7 +22,6 @@ set ::sentinel_instances {} set ::redis_instances {} set ::sentinel_base_port 20000 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 ::dirs {} ; # We remove all the temp dirs at exit set ::run_matching {} ; # If non empty, only tests matching pattern are run. diff --git a/tests/sentinel/run.tcl b/tests/sentinel/run.tcl index 78d2f61bc..3edde672e 100644 --- a/tests/sentinel/run.tcl +++ b/tests/sentinel/run.tcl @@ -5,6 +5,8 @@ cd tests/sentinel source ../instances.tcl +set ::instances_count 5 ; # How many instances we use at max. + proc main {} { parse_options spawn_instance sentinel $::sentinel_base_port $::instances_count