summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-08-31 21:30:32 +0200
committerBram Moolenaar <Bram@vim.org>2020-08-31 21:30:32 +0200
commit7d6979608ee83b06ccfab2589da3047b143defae (patch)
treea0abc8a6e0379d8843562b8d71407d11be5f392e
parent07e87e9eb5e7195d47d47c0ca752b6c8372a99ea (diff)
downloadvim-git-7d6979608ee83b06ccfab2589da3047b143defae.tar.gz
patch 8.2.1555: not all tests are executed on Github Actionsv8.2.1555
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 #6798)
-rw-r--r--.github/workflows/ci-windows.yaml9
-rw-r--r--src/testdir/runtest.vim2
-rw-r--r--src/testdir/test_python2.vim5
-rw-r--r--src/testdir/test_python3.vim5
-rw-r--r--src/version.c2
5 files changed, 15 insertions, 8 deletions
diff --git a/.github/workflows/ci-windows.yaml b/.github/workflows/ci-windows.yaml
index d23beef41..0fef20da5 100644
--- a/.github/workflows/ci-windows.yaml
+++ b/.github/workflows/ci-windows.yaml
@@ -127,6 +127,11 @@ jobs:
)
goto :eof
+ - name: Copy src directory to src2
+ shell: cmd
+ run: |
+ xcopy src src2\ /E > nul
+
- name: Build (MSVC)
if: matrix.toolchain == 'msvc'
shell: cmd
@@ -196,10 +201,6 @@ jobs:
echo %COL_GREEN%vim version:%COL_RESET%
.\vim --version || exit 1
- mkdir ..\src2
- xcopy testdir ..\src2\testdir\ /E > nul || exit 1
- copy evalfunc.c ..\src2 > nul
-
echo %COL_GREEN%Start testing vim in background.%COL_RESET%
start cmd /c "cd ..\src2\testdir & nmake -nologo -f Make_dos.mak VIMPROG=..\..\src\vim > nul & echo done>done.txt"
diff --git a/src/testdir/runtest.vim b/src/testdir/runtest.vim
index 99854042b..1a83227b1 100644
--- a/src/testdir/runtest.vim
+++ b/src/testdir/runtest.vim
@@ -382,7 +382,9 @@ endif
" Names of flaky tests.
let s:flaky_tests = [
+ \ 'Test_BufWrite_lockmarks()',
\ 'Test_autocmd_SafeState()',
+ \ 'Test_bufunload_all()',
\ 'Test_client_server()',
\ 'Test_close_and_exit_cb()',
\ 'Test_close_output_buffer()',
diff --git a/src/testdir/test_python2.vim b/src/testdir/test_python2.vim
index 8fa73401b..fd8fe70e4 100644
--- a/src/testdir/test_python2.vim
+++ b/src/testdir/test_python2.vim
@@ -2412,7 +2412,7 @@ func Test_python_chdir()
cb.append(vim.eval('@%'))
os.chdir('..')
path = fnamemodify('.', ':p:h:t')
- if path != 'src':
+ if path != 'src' and path != 'src2':
# Running tests from a shadow directory, so move up another level
# This will result in @% looking like shadow/testdir/Xfile, hence the
# extra fnamemodify
@@ -2422,7 +2422,8 @@ func Test_python_chdir()
os.chdir(path)
del path
else:
- cb.append(fnamemodify('.', ':p:h:t'))
+ # Also accept running from src2/testdir/ for MS-Windows CI.
+ cb.append(fnamemodify('.', ':p:h:t').replace('src2', 'src'))
cb.append(vim.eval('@%').replace(os.path.sep, '/'))
os.chdir('testdir')
cb.append(fnamemodify('.', ':p:h:t'))
diff --git a/src/testdir/test_python3.vim b/src/testdir/test_python3.vim
index 0885c9698..1bdb4c171 100644
--- a/src/testdir/test_python3.vim
+++ b/src/testdir/test_python3.vim
@@ -2591,7 +2591,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
@@ -2600,7 +2600,8 @@ func Test_python3_chdir()
cb.append(vim.eval('@%')[len(path)+1:].replace(os.path.sep, '/'))
os.chdir(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')
diff --git a/src/version.c b/src/version.c
index 92c533c88..f5c83beca 100644
--- a/src/version.c
+++ b/src/version.c
@@ -755,6 +755,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 1555,
+/**/
1554,
/**/
1553,