From 100aa31e52b13e69d61caeb1796581e4bbb3b9ca Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 9 Aug 2023 22:39:23 +0800 Subject: [PATCH] test(nvim): fix nvim test in linux --- .github/workflows/check.yml | 11 ++++++----- test/plugin/flygrep.vader | 2 ++ 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 426331ee8..182efc125 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -92,14 +92,15 @@ jobs: if [ "$VIM_BIN" = "nvim" ]; then export PATH="${DEPS}/_neovim/${VIM_TAG}/bin:${PATH}" export VIM="${DEPS}/_neovim/${VIM_TAG}/share/nvim/runtime" + export VIM_Es="--headless" else export PATH="${DEPS}/_vim/${VIM_TAG}/bin:${PATH}" export VIM="${DEPS}/_vim/${VIM_TAG}/share/vim" - fi - if [ "$DISABLE_ES" = "true" ]; then - export VIM_Es="" - else - export VIM_Es="-Es" + if [ "$DISABLE_ES" = "true" ]; then + export VIM_Es="" + else + export VIM_Es="-Es" + fi fi export PATH="/home/runner/.local/bin:${PATH}" echo "\$PATH: \"${PATH}\"" diff --git a/test/plugin/flygrep.vader b/test/plugin/flygrep.vader index 0d100b417..6c5a9b71f 100644 --- a/test/plugin/flygrep.vader +++ b/test/plugin/flygrep.vader @@ -8,11 +8,13 @@ Execute ( SpaceVim plugin: flygrep ): let g:_spacevim_input_timeout = 0 let lnr = 0 let current_line = line('.') + Log getline('.') for line in readfile('Makefile') let lnr += 1 if line =~# 'COVIMERAGE' break endif endfor + Log 'lnr is:' . lnr AssertEqual lnr, current_line unlet lnr line current_line