ci: add cirrus to isCI function to skip tests (#20526)

The environment variable CIRRUS_CI is manually passed to RunTests.cmake
as it doesn't get passed when using cmake script mode.
This commit is contained in:
dundargoc
2022-10-17 17:16:31 +02:00
committed by GitHub
parent b9632e58e3
commit 5046b4b4ad
8 changed files with 32 additions and 22 deletions

View File

@@ -9,7 +9,7 @@ local feed_command = helpers.feed_command
local funcs = helpers.funcs
local meths = helpers.meths
local iswin = helpers.iswin
local uname = helpers.uname
local isCI = helpers.isCI
local fname = 'Xtest-functional-ex_cmds-write'
local fname_bak = fname .. '~'
@@ -53,8 +53,8 @@ describe(':write', function()
end)
it('&backupcopy=no replaces symlink with new file', function()
if uname() == 'freebsd' then
pending('Failing FreeBSD test')
if isCI('cirrus') then
pending('FIXME: cirrus')
end
command('set backupcopy=no')
write_file('test_bkc_file.txt', 'content0')
@@ -95,8 +95,8 @@ describe(':write', function()
end)
it('errors out correctly', function()
if uname() == 'freebsd' then
pending('Failing FreeBSD test')
if isCI('cirrus') then
pending('FIXME: cirrus')
end
command('let $HOME=""')
eq(funcs.fnamemodify('.', ':p:h'), funcs.fnamemodify('.', ':p:h:~'))