Changeset 3827fcf6


Ignore:
Timestamp:
02/23/2024 03:47:06 PM (4 months ago)
Author:
Xi Ruoyao <xry111@…>
Branches:
12.1, multilib, trunk, xry111/arm64, xry111/loongarch, xry111/loongarch-12.1, xry111/mips64el
Children:
28bb09c0, bd003a8
Parents:
109afb2
Message:

vim: Set TERM=xterm-256color for test

I spent some time investigating the difference of vim test results from
different editors. It turns out the value of TERM can affect the test
results in a deterministic way: when TERM=xterm-256color all tests pass,
when TERM=linux one test fails, and when TERM=vt100 20+ tests fail.

As we are redirecting the output to a file, the actual type of the
terminal does not matter and we can just specify a value known to work.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter08/vim.xml

    r109afb2 r3827fcf6  
    7272    class="username">tester</systemitem>:</para>
    7373
    74 <screen><userinput remap="test">su tester -c "LANG=en_US.UTF-8 make -j1 test" &amp;> vim-test.log</userinput></screen>
     74<screen><userinput remap="test">su tester -c "TERM=xterm-256color LANG=en_US.UTF-8 make -j1 test" \
     75   &amp;> vim-test.log</userinput></screen>
    7576
    7677    <para>The test suite outputs a lot of binary data to the screen.  This can
    77     cause issues with the settings of the current terminal.  The problem can be
     78    cause issues with the settings of the current terminal (especially while
     79    we are overriding the <envar>TERM</envar> variable to satisify some
     80    assumptions of the test suite).  The problem can be
    7881    avoided by redirecting the output to a log file as shown above.  A
    7982    successful test will result in the words "ALL DONE" in the log file
Note: See TracChangeset for help on using the changeset viewer.