Tests: Add fish_mode_prompt to except_prompt

Without this, the interactive tests fail when they receive a mode_prompt
in vi-mode.
This commit is contained in:
Fabian Homborg 2016-04-15 01:29:27 +02:00
parent e6ad48ea1b
commit 7ebafa53f6

View file

@ -51,7 +51,7 @@ set prompt_counter 1
proc expect_prompt {args} {
global prompt_counter
upvar expect_out expect_out
set prompt_pat [list -re "(?:\\r\\n?|^)prompt $prompt_counter>(?:$|\\r)"]
set prompt_pat [list -re "(?:\\r\\n?|^)(?:\\\[.\\\] )?prompt $prompt_counter>(?:$|\\r)"]
if {[llength $args] == 1 && [string match "\n*" $args]} {
set args [join $args]
}