X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/d4507ec615439794e113daf51d7d5fccae77408a..4774a53b:/tests/test_helper.tcl diff --git a/tests/test_helper.tcl b/tests/test_helper.tcl index 5aa24248..da6520a3 100644 --- a/tests/test_helper.tcl +++ b/tests/test_helper.tcl @@ -15,6 +15,7 @@ set ::traceleaks 0 set ::valgrind 0 set ::denytags {} set ::allowtags {} +set ::external 0; # If "1" this means, we are running against external instance proc execute_tests name { source "tests/$name.tcl" @@ -106,6 +107,13 @@ for {set j 0} {$j < [llength $argv]} {incr j} { } } incr j + } elseif {$opt eq {--host}} { + set ::external 1 + set ::host $arg + incr j + } elseif {$opt eq {--port}} { + set ::port $arg + incr j } else { puts "Wrong argument: $opt" exit 1