diff options
author | Valentino Geron <valentino@redislabs.com> | 2022-05-25 18:25:38 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-25 18:25:38 +0300 |
commit | 9eb97b5d94ca4434f9035af164fe3a48dca31de2 (patch) | |
tree | 9ad7ef3f4ec0462d35df0cb060f3f0e2b83a1478 /tests/instances.tcl | |
parent | 450c88f368317ae9d2d3d597cf121999660e2934 (diff) | |
download | redis-9eb97b5d94ca4434f9035af164fe3a48dca31de2.tar.gz |
Fix regex support in --only, --skipfile and --skiptest (#10741)
The regex support was added in:
* https://github.com/redis/redis/pull/9352
* https://github.com/redis/redis/pull/9555
* https://github.com/redis/redis/pull/10212
These commits break backword compatiblity with older versions.
This fix keeps the test suite infra compatible with old versions by
default. However, if you want regex, the string must start with `/`
Diffstat (limited to 'tests/instances.tcl')
-rw-r--r-- | tests/instances.tcl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/instances.tcl b/tests/instances.tcl index e1516c1ac..a92c5e553 100644 --- a/tests/instances.tcl +++ b/tests/instances.tcl @@ -441,7 +441,7 @@ proc run_tests {} { file delete $::leaked_fds_file } - if {[llength $::run_matching] != 0 && [search_pattern_list $test $::run_matching true] == -1} { + if {[llength $::run_matching] != 0 && ![search_pattern_list $test $::run_matching true]} { continue } if {[file isdirectory $test]} continue @@ -699,4 +699,4 @@ proc redis_client {type id} { proc redis_client_by_addr {host port} { set client [redis $host $port 0 $::tls] return $client -}
\ No newline at end of file +} |