mirror of
https://github.com/neovim/neovim.git
synced 2024-09-17 20:58:20 -04:00
fix(test): "tempdir not a directory" in CI logs
$NVIM_LOG_FILE: /Users/runner/work/neovim/neovim/build/.nvimlog WRN 2024-09-08T21:48:13.279 ?.21134 vim_mktempdir:3281: $TMPDIR tempdir not a directory (or does not exist): TMPDIR-should-be-ignored WRN 2024-09-08T21:48:13.312 ?.21137 vim_mktempdir:3281: $TMPDIR tempdir not a directory (or does not exist): TMPDIR-should-be-ignored
This commit is contained in:
parent
ed832b9ddf
commit
c8e3618e0e
@ -1132,6 +1132,7 @@ describe('stdpath()', function()
|
||||
HOMEDRIVE = 'C:',
|
||||
HOMEPATH = '\\Users\\docwhat',
|
||||
LOCALAPPDATA = 'C:\\Users\\docwhat\\AppData\\Local',
|
||||
NVIM_LOG_FILE = testlog,
|
||||
TEMP = 'C:\\Users\\docwhat\\AppData\\Local\\Temp',
|
||||
TMPDIR = 'C:\\Users\\docwhat\\AppData\\Local\\Temp',
|
||||
TMP = 'C:\\Users\\docwhat\\AppData\\Local\\Temp',
|
||||
@ -1142,6 +1143,7 @@ describe('stdpath()', function()
|
||||
HOMEDRIVE = 'HOMEDRIVE-should-be-ignored',
|
||||
HOMEPATH = 'HOMEPATH-should-be-ignored',
|
||||
LOCALAPPDATA = 'LOCALAPPDATA-should-be-ignored',
|
||||
NVIM_LOG_FILE = testlog,
|
||||
TEMP = 'TEMP-should-be-ignored',
|
||||
TMPDIR = 'TMPDIR-should-be-ignored',
|
||||
TMP = 'TMP-should-be-ignored',
|
||||
@ -1166,11 +1168,17 @@ describe('stdpath()', function()
|
||||
it('set via system', function()
|
||||
set_paths_via_system(env_var_name, paths)
|
||||
eq(expected_paths, t.fix_slashes(fn.stdpath(stdpath_arg)))
|
||||
if not is_os('win') then
|
||||
assert_log('$TMPDIR tempdir not a directory.*TMPDIR%-should%-be%-ignored', testlog, 100)
|
||||
end
|
||||
end)
|
||||
|
||||
it('set at runtime', function()
|
||||
set_paths_at_runtime(env_var_name, paths)
|
||||
eq(expected_paths, t.fix_slashes(fn.stdpath(stdpath_arg)))
|
||||
if not is_os('win') then
|
||||
assert_log('$TMPDIR tempdir not a directory.*TMPDIR%-should%-be%-ignored', testlog, 100)
|
||||
end
|
||||
end)
|
||||
end)
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user