Skip to content

Commit

Permalink
(test suite): Pass assert_complete_any for exact/only given arg compl…
Browse files Browse the repository at this point in the history
…eted

So now e.g. "kill 1 " is a good, passing result to "kill 1".
  • Loading branch information
scop committed Aug 4, 2016
1 parent 103dbe5 commit 847c2bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/lib/library.exp
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ proc assert_complete_any {cmd {test ""} {prompt /@}} {
expect {
# Match completion, single word. This word is shown on the
# same line as the command.
-re "^\\w+ $" { pass "$test" }
-re "^\\w* $" { pass "$test" }
# Try matching multiple words again, with new timeout
-re "^\r\n.*$prompt$cmd\\S*$" { pass "$test" }
}
Expand Down

0 comments on commit 847c2bf

Please sign in to comment.