Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
e8631a69
Commit
e8631a69
authored
Apr 29, 2014
by
antirez
Browse files
Cluster / Sentinel test: instances count moved to run.tcl.
parent
9e422f74
Changes
3
Show whitespace changes
Inline
Side-by-side
tests/cluster/run.tcl
View file @
e8631a69
...
@@ -6,6 +6,8 @@ cd tests/cluster
...
@@ -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
{
...
...
tests/instances.tcl
View file @
e8631a69
...
@@ -22,7 +22,6 @@ set ::sentinel_instances {}
...
@@ -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.
...
...
tests/sentinel/run.tcl
View file @
e8631a69
...
@@ -5,6 +5,8 @@
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment