diff --git a/tests/support/server.tcl b/tests/support/server.tcl index 5fd5499bcf0..29395a87a86 100644 --- a/tests/support/server.tcl +++ b/tests/support/server.tcl @@ -307,8 +307,9 @@ proc tags_acceptable {tags err_return} { # doesn't really belong here, but highly coupled to code in start_server proc tags {tags code} { # If we 'tags' contain multiple tags, quoted and separated by spaces, - # we want to get rid of the quotes in order to have a proper list - set tags [string map { \" "" } $tags] + # we want to get rid of the quotes in order to have a proper list. + # Flatten it so {"a b"} and [list "a b"] both yield two tags. + set tags [concat {*}[string map { \" "" } $tags]] check_subtags $tags set ::tags [concat $::tags $tags] if {![tags_acceptable $::tags err]} { @@ -522,8 +523,9 @@ proc start_server {options {code undefined}} { } "tags" { # If we 'tags' contain multiple tags, quoted and separated by spaces, - # we want to get rid of the quotes in order to have a proper list - set tags [string map { \" "" } $value] + # we want to get rid of the quotes in order to have a proper list. + # Flatten it so {"a b"} and [list "a b"] both yield two tags. + set tags [concat {*}[string map { \" "" } $value]] check_subtags $tags set ::tags [concat $::tags $tags] } diff --git a/tests/support/test.tcl b/tests/support/test.tcl index de4844c60b0..09232d7b480 100644 --- a/tests/support/test.tcl +++ b/tests/support/test.tcl @@ -297,6 +297,8 @@ proc test {name code {okpattern undefined} {tags {}}} { } set old_singledb $::singledb + # Flatten so {"a b"} and [list "a b"] both yield two tags, as in start_server. + set tags [concat {*}[string map { \" "" } $tags]] check_subtags $tags set tags [concat $::tags $tags] if {![tags_acceptable $tags err]} {