Skip to content

Commit

Permalink
Fix macos test
Browse files Browse the repository at this point in the history
  • Loading branch information
sakhnik committed Apr 23, 2024
1 parent 982a5ad commit 774eb79
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
5 changes: 4 additions & 1 deletion test/init.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
vim.cmd("language C")
if vim.loop.os_uname().sysname:find('Darwin') == nil then
-- Command not available in nvim-macos
vim.cmd("language C")
end
local plugin_dir = vim.loop.fs_realpath('..')
vim.o.rtp = vim.env.VIMRUNTIME .. ',' .. plugin_dir
vim.g.mapleader = ' '
Expand Down
8 changes: 6 additions & 2 deletions utils/testenv_darwin.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,12 @@ class Setup:
def __init__(self, url: str):
bindir = os.path.join(os.getenv('HOME'), 'bin')
subprocess.run(f'mkdir -p {bindir}', shell=True, check=True)
with open(os.getenv("GITHUB_PATH"), 'a') as f:
f.write(f'{bindir}\n')
github_path = os.getenv("GITHUB_PATH")
if github_path:
with open(github_path, 'a') as f:
f.write(f'{bindir}\n')
else:
print(f"Ensure {bindir} is in PATH")

subprocess.run('pip install --user six', shell=True, check=True)

Expand Down

0 comments on commit 774eb79

Please sign in to comment.