Skip to content

Commit 847c2bf

Browse files
committed
(test suite): Pass assert_complete_any for exact/only given arg completed
So now e.g. "kill 1 " is a good, passing result to "kill 1".
1 parent 103dbe5 commit 847c2bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/lib/library.exp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ proc assert_complete_any {cmd {test ""} {prompt /@}} {
346346
expect {
347347
# Match completion, single word. This word is shown on the
348348
# same line as the command.
349-
-re "^\\w+ $" { pass "$test" }
349+
-re "^\\w* $" { pass "$test" }
350350
# Try matching multiple words again, with new timeout
351351
-re "^\r\n.*$prompt$cmd\\S*$" { pass "$test" }
352352
}

0 commit comments

Comments
 (0)