mirror of
https://github.com/neovim/neovim.git
synced 2024-12-19 18:55:14 -07:00
test(Windows): normalize paths for test summary
It previously gave a mix of forward and backslashes which was jarring.
This commit is contained in:
parent
824639c7c1
commit
0bc3238504
@ -204,7 +204,7 @@ return function(options)
|
|||||||
|
|
||||||
handler.fileStart = function(file)
|
handler.fileStart = function(file)
|
||||||
fileTestCount = 0
|
fileTestCount = 0
|
||||||
io.write(fileStartString:format(file.name))
|
io.write(fileStartString:format(vim.fs.normalize(file.name)))
|
||||||
io.flush()
|
io.flush()
|
||||||
return nil, true
|
return nil, true
|
||||||
end
|
end
|
||||||
@ -213,7 +213,7 @@ return function(options)
|
|||||||
local elapsedTime_ms = getElapsedTime(file)
|
local elapsedTime_ms = getElapsedTime(file)
|
||||||
local tests = (fileTestCount == 1 and 'test' or 'tests')
|
local tests = (fileTestCount == 1 and 'test' or 'tests')
|
||||||
fileCount = fileCount + 1
|
fileCount = fileCount + 1
|
||||||
io.write(fileEndString:format(fileTestCount, tests, file.name, elapsedTime_ms))
|
io.write(fileEndString:format(fileTestCount, tests, vim.fs.normalize(file.name), elapsedTime_ms))
|
||||||
io.flush()
|
io.flush()
|
||||||
return nil, true
|
return nil, true
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user