From 1570cfb6384e972a8f2797a75cd2515e53ec2cf0 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Mon, 1 Apr 2024 06:48:14 +0800 Subject: [PATCH] test(core/job_spec): skip exit test if "sleep" command missing (#28137) --- test/functional/core/job_spec.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/test/functional/core/job_spec.lua b/test/functional/core/job_spec.lua index b7e9af99ac..f0e61fbcc1 100644 --- a/test/functional/core/job_spec.lua +++ b/test/functional/core/job_spec.lua @@ -1236,6 +1236,7 @@ describe('pty process teardown', function() end) it('does not prevent/delay exit. #4798 #4900', function() + skip(fn.executable('sleep') == 0, 'missing "sleep" command') -- Use a nested nvim (in :term) to test without --headless. fn.termopen({ helpers.nvim_prog,