test: Increase default_screen_timeout when running on travis

Some screen tests such as system/ctrl+c(viml_system_spec.lua) can take some time
to respond(default kill timeout is 2 seconds for an interrupted job) and fail
when running under a slow environment such as travis.
This commit is contained in:
Thiago de Arruda 2015-02-13 10:28:02 -03:00
parent 291e15c60a
commit 98dca8a827

View File

@ -116,7 +116,11 @@ local debug_screen
local default_screen_timeout = 2500
if os.getenv('VALGRIND') then
default_screen_timeout = 7500
default_screen_timeout = default_screen_timeout * 3
end
if os.getenv('CI_TARGET') then
default_screen_timeout = default_screen_timeout * 3
end
local colors = request('vim_get_color_map')