mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06: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:',
|
HOMEDRIVE = 'C:',
|
||||||
HOMEPATH = '\\Users\\docwhat',
|
HOMEPATH = '\\Users\\docwhat',
|
||||||
LOCALAPPDATA = 'C:\\Users\\docwhat\\AppData\\Local',
|
LOCALAPPDATA = 'C:\\Users\\docwhat\\AppData\\Local',
|
||||||
|
NVIM_LOG_FILE = testlog,
|
||||||
TEMP = 'C:\\Users\\docwhat\\AppData\\Local\\Temp',
|
TEMP = 'C:\\Users\\docwhat\\AppData\\Local\\Temp',
|
||||||
TMPDIR = 'C:\\Users\\docwhat\\AppData\\Local\\Temp',
|
TMPDIR = 'C:\\Users\\docwhat\\AppData\\Local\\Temp',
|
||||||
TMP = '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',
|
HOMEDRIVE = 'HOMEDRIVE-should-be-ignored',
|
||||||
HOMEPATH = 'HOMEPATH-should-be-ignored',
|
HOMEPATH = 'HOMEPATH-should-be-ignored',
|
||||||
LOCALAPPDATA = 'LOCALAPPDATA-should-be-ignored',
|
LOCALAPPDATA = 'LOCALAPPDATA-should-be-ignored',
|
||||||
|
NVIM_LOG_FILE = testlog,
|
||||||
TEMP = 'TEMP-should-be-ignored',
|
TEMP = 'TEMP-should-be-ignored',
|
||||||
TMPDIR = 'TMPDIR-should-be-ignored',
|
TMPDIR = 'TMPDIR-should-be-ignored',
|
||||||
TMP = 'TMP-should-be-ignored',
|
TMP = 'TMP-should-be-ignored',
|
||||||
@ -1166,11 +1168,17 @@ describe('stdpath()', function()
|
|||||||
it('set via system', function()
|
it('set via system', function()
|
||||||
set_paths_via_system(env_var_name, paths)
|
set_paths_via_system(env_var_name, paths)
|
||||||
eq(expected_paths, t.fix_slashes(fn.stdpath(stdpath_arg)))
|
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)
|
||||||
|
|
||||||
it('set at runtime', function()
|
it('set at runtime', function()
|
||||||
set_paths_at_runtime(env_var_name, paths)
|
set_paths_at_runtime(env_var_name, paths)
|
||||||
eq(expected_paths, t.fix_slashes(fn.stdpath(stdpath_arg)))
|
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)
|
end)
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user