1
0
forked from aniani/vim

patch 9.1.0757: tests: messages files contains ANSI escape sequences

Problem:  tests: messages files contains ANSI escape sequences
Solution: filter those out in runtests.vim

Also, since we are setting $LC_ALL, we don't need to set $LANG and
$LANGUAGE since those are overridden by $LC_ALL anyhow.

closes: #15788

Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Christian Brabandt
2024-10-03 16:38:52 +02:00
parent a6d9e3c4e0
commit 075ab5ab3b
3 changed files with 5 additions and 3 deletions

View File

@@ -522,11 +522,11 @@ func FinishTesting()
" Add SKIPPED messages
call extend(s:messages, s:skipped)
" Append messages to the file "messages"
" Append messages to the file "messages", but remove ANSI Escape sequences
split messages
call append(line('$'), '')
call append(line('$'), 'From ' . g:testname . ':')
call append(line('$'), s:messages)
call append(line('$'), s:messages->map({_, val -> substitute(val, '\%x1b\[\d\?m', '', 'g')}))
write
qall!