From b95413f601985cb5bd336c23b006185693fe85b2 Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Mon, 4 Aug 2025 15:01:10 -0400 Subject: [PATCH] vim-patch:8.2.1555: not all tests are executed on Github Actions Problem: Not all tests are executed on Github Actions. Solution: Copy "src" to "src2" earlier. Recognize "src2" in a couple more places. Add two tests to the list of flaky tests. (Ken Takata, closes vim/vim#6798) https://github.com/vim/vim/commit/7d6979608ee83b06ccfab2589da3047b143defae Co-authored-by: Bram Moolenaar --- test/old/testdir/test_python3.vim | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/old/testdir/test_python3.vim b/test/old/testdir/test_python3.vim index 69792929f9..054036e3ae 100644 --- a/test/old/testdir/test_python3.vim +++ b/test/old/testdir/test_python3.vim @@ -2286,7 +2286,7 @@ func Test_python3_chdir() cb.append(vim.eval('@%')) os.chdir('..') path = fnamemodify('.', ':p:h:t') - if path != b'src': + if path != b'src' and path != b'src2': # Running tests from a shadow directory, so move up another level # This will result in @% looking like shadow/testdir/Xfile, hence the # slicing to remove the leading path and path separator @@ -2296,7 +2296,8 @@ func Test_python3_chdir() os.chdir(path) del path else: - cb.append(str(fnamemodify('.', ':p:h:t'))) + # Also accept running from src2/testdir/ for MS-Windows CI. + cb.append(str(fnamemodify('.', ':p:h:t').replace(b'src2', b'src'))) cb.append(vim.eval('@%').replace(os.path.sep, '/')) del path os.chdir('testdir')