use Arch Linux PKGBUILD
build it with makepkg -src or chrootbuild
no test failed like on upstream (here)
8.2.5062-1
gh Action ubuntu-latest
manjaro-chrootbuild
Failures: From test_terminal.vim: Found errors in Test_terminal_qall_prompt(): Run 1: command line..script /build/vim/src/vim-8.2.5062/src/testdir/runtest.vim[459]..function RunTheTest[44]..Test_terminal_qall_prompt[6]..WaitForAssert[2]..<SNR>6_WaitForCommon[11]..<lambda>133 line 1: Pattern '\\[running]' does not match '<r@fv-az82-486:/build/vim/src/vim-8.2.5062/src/testdir] 0,0-1 All' Run 2: command line..script /build/vim/src/vim-8.2.5062/src/testdir/runtest.vim[492]..function RunTheTest[44]..Test_terminal_qall_prompt[6]..WaitForAssert[2]..<SNR>6_WaitForCommon[11]..<lambda>138 line 1: Pattern '\\[running]' does not match '<r@fv-az82-486:/build/vim/src/vim-8.2.5062/src/testdir] 0,0-1 All' Run 3: command line..script /build/vim/src/vim-8.2.5062/src/testdir/runtest.vim[492]..function RunTheTest[44]..Test_terminal_qall_prompt[6]..WaitForAssert[2]..<SNR>6_WaitForCommon[11]..<lambda>143 line 1: Pattern '\\[running]' does not match '<r@fv-az82-486:/build/vim/src/vim-8.2.5062/src/testdir] 0,0-1 All' Run 4: command line..script /build/vim/src/vim-8.2.5062/src/testdir/runtest.vim[492]..function RunTheTest[44]..Test_terminal_qall_prompt[6]..WaitForAssert[2]..<SNR>6_WaitForCommon[11]..<lambda>148 line 1: Pattern '\\[running]' does not match '<r@fv-az82-486:/build/vim/src/vim-8.2.5062/src/testdir] 0,0-1 All' Run 5: command line..script /build/vim/src/vim-8.2.5062/src/testdir/runtest.vim[492]..function RunTheTest[44]..Test_terminal_qall_prompt[6]..WaitForAssert[2]..<SNR>6_WaitForCommon[11]..<lambda>153 line 1: Pattern '\\[running]' does not match '<r@fv-az82-486:/build/vim/src/vim-8.2.5062/src/testdir] 0,0-1 All' Flaky test failed too often, giving up TEST FAILURE make[2]: Leaving directory '/build/vim/src/vim-8.2.5062/src/testdir' make[1]: Leaving directory '/build/vim/src/vim-8.2.5062/src'
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
only possible to build if test is disabled
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
happend on 8.2.5055 and up but not on 8.2.5054
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
CC @foutrelis
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
@brammool https://github.com/pheiduck/vim-git/runs/6794225556?check_suite_focus=true
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
What is the value of $SHELL when running the tests?
bash / xterm
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
btw, the test is tried 6 times but failed anyway on my Environment
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
build it with makepkg -src or chrootbuild
Could that be, that $SHELL is different in your chroot env?
If I look at this:
command line..script /build/vim/src/vim-8.2.5062/src/testdir/runtest.vim[492]..function RunTheTest[44]..Test_terminal_qall_prompt[6]..WaitForAssert[2]..<SNR>6_WaitForCommon[11]..<lambda>153 line 1: Pattern '\\[running]' does not match '<r@fv-az82-486:/build/vim/src/vim-8.2.5062/src/testdir] 0,0-1 All'
I wonder where the path/filename section is coming from. What happens if you run the self-compiled vim inside your chroot and run :term? What does the statusline show? From that statusline I would think that no terminal is inside that window active.
Not sure if it could happen when running the test suite, but could your statusline be set or be overridden, e.g. by a statusline plugin?
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
I can reproduce the term status line both inside and outside of a chroot. I built vim 8.2.5088 on Arch (with skipped tests) and installed the resulting package. :term spawns a shell but in the middle of the screen there's a green status line saying:
!/bin/bash [foutrelis@notbad:~/desktop/vim/trunk] 0,0-1 All
If I cd to another directory in the spawned shell, the status line is updated with the new path.
After rolling back to 8.2.5046, :term gives:
!/bin/bash [running] 0,0-1 All
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
Seems the behavior we're seeing comes from the system-wide /etc/bash.bashrc. It sets PROMPT_COMMAND to a value that updates the window title to include information about the current directory.
You should be able to reproduce this with bash using:
PROMPT_COMMAND='printf "\033]0;catdog\007"' vim
I'm thinking specifying a fixed PROMPT_COMMAND value for Test_terminal_qall_prompt would fix this and make the test more robust.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
Closed #10530 as completed via e564c70.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
still present for me: https://github.com/pheiduck/vim-git/runs/6882240944?check_suite_focus=true#step:7:15147
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
I get the same error when running the test suite (vim version 8.2.5094). However, using call test_override('vterm_title', 1) in a regular vim instance makes :term show [running]. Not sure why it doesn't work for the test though.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
This seems to fix the test but I can't judge its correctness (just copied how :term is sent to vim):
--- src/vim-8.2.5094/src/testdir/test_terminal.vim.orig 2022-06-14 18:14:53.000000000 +0000 +++ src/vim-8.2.5094/src/testdir/test_terminal.vim 2022-06-14 18:14:53.000000000 +0000 @@ -1219,10 +1219,11 @@ endfunc func Test_terminal_qall_prompt() CheckRunVimInTerminal - " the shell may set the window title, we don't want that here - call test_override('vterm_title', 1) let buf = RunVimInTerminal('', {}) + " the shell may set the window title, we don't want that here + call term_sendkeys(buf, ":call test_override('vterm_title', 1)\<CR>") + " Open a terminal window and wait for the prompt to appear call term_sendkeys(buf, ":term\<CR>") call WaitForAssert({-> assert_match('\[running]', term_getline(buf, 10))}) @@ -1236,7 +1237,6 @@ func Test_terminal_qall_prompt() " close the terminal window where Vim was running quit - call test_override('ALL', 0) endfunc " Run Vim in a terminal, then start a terminal window with a shell and check
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
I think there's an error in 99f4b6e -- it does :test_override instead of :call test_override.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()