forked from aniani/vim
patch 9.0.0582: channel cwd test fails on Cirrus CI
Problem: Channel cwd test fails on Cirrus CI. Solution: Also remove /private from the expected directory.
This commit is contained in:
@@ -1989,8 +1989,13 @@ func Test_cwd()
|
||||
let job = job_start(cmd, {'callback': {ch,msg -> execute(":let g:envstr .= msg")}, 'cwd': expect})
|
||||
try
|
||||
call WaitForAssert({-> assert_notequal("", g:envstr)})
|
||||
" There may be a trailing slash or not, ignore it
|
||||
let expect = substitute(expect, '[/\\]$', '', '')
|
||||
let g:envstr = substitute(g:envstr, '[/\\]$', '', '')
|
||||
" on CI there can be /private prefix or not, ignore it
|
||||
if $CI != '' && stridx(expect, '/private/') == 0
|
||||
let expect = expect[8:]
|
||||
endif
|
||||
if $CI != '' && stridx(g:envstr, '/private/') == 0
|
||||
let g:envstr = g:envstr[8:]
|
||||
endif
|
||||
|
@@ -699,6 +699,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
582,
|
||||
/**/
|
||||
581,
|
||||
/**/
|
||||
|
Reference in New Issue
Block a user