mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 05:13:10 +00:00
Update bind.expect for travis-CI
Travis-CI runs with clang ASAN enabled, which makes fish slow enough that certain timing tests fail. Sleep a little so that fish can catch up.
This commit is contained in:
parent
adc3b0e122
commit
4c5aa8860a
1 changed files with 4 additions and 3 deletions
|
@ -49,9 +49,8 @@ expect_prompt
|
||||||
# These vi tests assume the fish_vi_key_bindings default escape timeout of
|
# These vi tests assume the fish_vi_key_bindings default escape timeout of
|
||||||
# 10ms is in effect; not the 300ms timeout for the default-mode.
|
# 10ms is in effect; not the 300ms timeout for the default-mode.
|
||||||
#
|
#
|
||||||
# This test is only present to make the Travis-CI framework succeed
|
|
||||||
# consistently. It's not clear why the subsequent tests succeed without this
|
# Go through a prompt cycle to let fish catch up, it may be slow due to ASAN
|
||||||
# test when executed on a local machine but not in the Travis-CI framework.
|
|
||||||
send "echo success: default escape timeout\r"
|
send "echo success: default escape timeout\r"
|
||||||
expect_prompt -re {\r\nsuccess: default escape timeout\r\n} {
|
expect_prompt -re {\r\nsuccess: default escape timeout\r\n} {
|
||||||
puts "prime vi mode, default timeout"
|
puts "prime vi mode, default timeout"
|
||||||
|
@ -60,6 +59,8 @@ expect_prompt -re {\r\nsuccess: default escape timeout\r\n} {
|
||||||
}
|
}
|
||||||
|
|
||||||
send "echo fail: default escape timeout"
|
send "echo fail: default escape timeout"
|
||||||
|
# Sleep to let fish catch up, it may be slow due to ASAN
|
||||||
|
sleep 0.02
|
||||||
send "\033"
|
send "\033"
|
||||||
# Delay needed to allow fish to transition to vi "normal" mode.
|
# Delay needed to allow fish to transition to vi "normal" mode.
|
||||||
sleep 0.020
|
sleep 0.020
|
||||||
|
|
Loading…
Reference in a new issue