Skip to content

Commit bac50ce

Browse files
committed
test: skip clipboard test on CI
1 parent 7f70d98 commit bac50ce

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

tests/test_command.lua

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,11 @@ T[":CopyPythonPath"]["import"]["nested Python file"] = function()
9696
end
9797

9898
T[":CopyPythonPath"]["copies to clipboard if no register is provided"] = function()
99+
-- CI env may not have clipboard, so skipping it
100+
if child.fn.has("clipboard") == 0 then
101+
return
102+
end
103+
99104
child.api.nvim_command(EDIT_ROOT_FILE_COMMAND)
100105

101106
child.api.nvim_win_set_cursor(0, { 5, 5 })

0 commit comments

Comments
 (0)