File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -175,6 +175,8 @@ jobs:
175175 Add-Content -Path $env:GITHUB_ENV -Value $bashEnvironment
176176 $windowsEnvironment = "ASTRONVIM_NEVIM_MIXED_PATH=$windowsPath"
177177 Add-Content -Path $env:GITHUB_ENV -Value $windowsEnvironment
178+ $nativeEnvironment = "ASTRONVIM_NEVIM_WINDOWS_PATH=$nvimPath"
179+ Add-Content -Path $env:GITHUB_ENV -Value $nativeEnvironment
178180
179181 - name : Verify requested Neovim version
180182 env :
@@ -227,15 +229,17 @@ jobs:
227229 if [ -n "${ASTRONVIM_NEVIM_BASH_PATH:-}" ]; then
228230 export PATH="$ASTRONVIM_NEVIM_BASH_PATH:$PATH"
229231 nvim_binary="${ASTRONVIM_NEVIM_MIXED_PATH:-$ASTRONVIM_NEVIM_BASH_PATH}/nvim.exe"
232+ nvim_child_binary="${ASTRONVIM_NEVIM_WINDOWS_PATH:-$nvim_binary}"
230233 else
231234 nvim_binary=nvim
235+ nvim_child_binary=nvim
232236 fi
233237 cd source
234238 source_root="$PWD"
235239 harness_root="$PWD/../e2e"
236240 export ASTRONVIM_SOURCE_ROOT="$source_root"
237241 export ASTRONVIM_E2E_ROOT="$harness_root"
238- export ASTRONVIM_TEST_NVIM="$nvim_binary "
242+ export ASTRONVIM_TEST_NVIM="$nvim_child_binary "
239243 mkdir -p "$ASTRONVIM_TEST_SUMMARY_DIR"
240244 case "$ASTRONVIM_TEST_SUITE" in
241245 semantic|semantic-nightly)
Original file line number Diff line number Diff line change @@ -242,20 +242,17 @@ T["AUTOCMD-03 tracks valid unique buffers across tabs deletion and terminal clos
242242 vim.t.bufs = { second, stale }
243243 vim.api.nvim_exec_autocmds("BufEnter", astronvim_test_autocmd_options(second))
244244
245+ vim.g.astronvim_test_terminal_closed = false
246+ vim.api.nvim_create_autocmd("TermClose", {
247+ once = true,
248+ callback = function() vim.g.astronvim_test_terminal_closed = true end,
249+ })
245250 vim.cmd "botright new"
246251 vim.cmd "terminal %s"
247252 local terminal = vim.api.nvim_get_current_buf()
248- vim.g.astronvim_test_terminal_closed = false
249253 _G.astronvim_test_terminal_before_close = { count = count(vim.t.bufs, terminal) }
250254 _G.astronvim_test_terminal_event_start = #_G.astronvim_test_buffer_events
251255 _G.astronvim_test_terminal_redraw_start = _G.astronvim_test_redraws
252- vim.api.nvim_create_autocmd(
253- "TermClose",
254- astronvim_test_autocmd_options(terminal, {
255- once = true,
256- callback = function() vim.g.astronvim_test_terminal_closed = true end,
257- })
258- )
259256 vim.fn.jobstop(vim.b[terminal].terminal_job_id)
260257
261258 _G.astronvim_test_tracking = {
You can’t perform that action at this time.
0 commit comments