refactor(tests): drop os_kill #32401

Also change job tests to use `nvim` instead of random programs like `ping`.
This commit is contained in:
Justin M. Keyes
2025-02-11 07:19:46 -08:00
committed by GitHub
parent 891d2f4029
commit ac768996b2
4 changed files with 15 additions and 34 deletions

View File

@@ -978,18 +978,6 @@ function M.add_builddir_to_rtp()
M.command(string.format([[set rtp+=%s/runtime]], t.paths.test_build_dir))
end
--- Kill (reap) a process by PID.
--- @param pid string
--- @return boolean?
function M.os_kill(pid)
return os.execute(
(
is_os('win') and 'taskkill /f /t /pid ' .. pid .. ' > nul'
or 'kill -9 ' .. pid .. ' > /dev/null'
)
)
end
--- Create folder with non existing parents
--- @param path string
--- @return boolean?