test.run: handle '*' wildcards

This commit is contained in:
Norman Feske 2019-03-25 11:16:43 +01:00
parent 01cff3ce84
commit a67b23eb2d
1 changed files with 3 additions and 0 deletions

View File

@ -273,6 +273,9 @@ proc query_expected_log_pattern { } {
foreach char [list {[} {]} {(} {)} {.}] {
regsub -all "\\$char" $line "\\$char" line }
# replace wildcards by non-greedy regexp wildcards
regsub -all {\*} $line {.*?} line
lappend prefixed_lines "$line.*?"
}