test: fix tests

This commit is contained in:
Folke Lemaitre 2024-06-26 18:42:52 +02:00
parent 6c7ef7e27a
commit 206d208018
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
3 changed files with 16 additions and 15 deletions

View file

@ -182,7 +182,7 @@ function Task:spawn(cmd, opts)
local running = true
---@param output string
function opts.on_exit(ok, output)
self:log(output, ok and vim.log.levels.DEBUG or vim.log.levels.ERROR)
self:log(vim.trim(output), ok and vim.log.levels.DEBUG or vim.log.levels.ERROR)
if on_exit then
pcall(on_exit, ok, output)
end