diff options
author | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2023-03-07 04:13:04 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-07 11:13:04 +0800 |
commit | af23d173883f47fd02a9a380c719e4428370b484 (patch) | |
tree | d5da436c1539905528254225dd8f817f1577fb84 /scripts/vim-patch.sh | |
parent | bf4eada2c83f5402fc56370fd22af11029a4a3aa (diff) | |
download | rneovim-af23d173883f47fd02a9a380c719e4428370b484.tar.gz rneovim-af23d173883f47fd02a9a380c719e4428370b484.tar.bz2 rneovim-af23d173883f47fd02a9a380c719e4428370b484.zip |
test: move oldtests to test directory (#22536)
The new oldtest directory is in test/old/testdir. The reason for this is
that many tests have hardcoded the parent directory name to be
'testdir'.
Diffstat (limited to 'scripts/vim-patch.sh')
-rwxr-xr-x | scripts/vim-patch.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/vim-patch.sh b/scripts/vim-patch.sh index f9f7330097..06ddf0f3b8 100755 --- a/scripts/vim-patch.sh +++ b/scripts/vim-patch.sh @@ -226,6 +226,10 @@ preprocess_patch() { local na_vimrcexample='vimrc_example\.vim' 2>/dev/null $nvim --cmd 'set dir=/tmp' +'g@^diff --git a/runtime/\<\%('${na_vimrcexample}'\)\>@norm! d/\v(^diff)|%$
' +w +q "$file" + # Rename src/testdir/ paths to test/old/testdir/ + LC_ALL=C sed -e 's/\( [ab]\)\/src\/testdir/\1\/test\/old\/testdir/g' \ + "$file" > "$file".tmp && mv "$file".tmp "$file" + # Rename src/ paths to src/nvim/ LC_ALL=C sed -e 's/\( [ab]\/src\)/\1\/nvim/g' \ "$file" > "$file".tmp && mv "$file".tmp "$file" |