mirror of
https://github.com/neovim/neovim.git
synced 2025-09-24 20:18:32 +00:00
ci(tsan): run functionaltests instead of oldtests (#21744)
With TUI as an external process oldtests no longer involve threads, so TSAN isn't useful. Meanwhile functionaltests may involve threads.
This commit is contained in:
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
@@ -261,11 +261,11 @@ jobs:
|
|||||||
name: Unittests
|
name: Unittests
|
||||||
run: ./ci/run_tests.sh unittests
|
run: ./ci/run_tests.sh unittests
|
||||||
|
|
||||||
- if: matrix.flavor != 'tsan' && (success() || failure() && steps.abort_job.outputs.status == 'success')
|
- if: success() || failure() && steps.abort_job.outputs.status == 'success'
|
||||||
name: Functionaltests
|
name: Functionaltests
|
||||||
run: ./ci/run_tests.sh functionaltests
|
run: ./ci/run_tests.sh functionaltests
|
||||||
|
|
||||||
- if: success() || failure() && steps.abort_job.outputs.status == 'success'
|
- if: matrix.flavor != 'tsan' && (success() || failure() && steps.abort_job.outputs.status == 'success')
|
||||||
name: Oldtests
|
name: Oldtests
|
||||||
run: ./ci/run_tests.sh oldtests
|
run: ./ci/run_tests.sh oldtests
|
||||||
|
|
||||||
|
@@ -17,16 +17,15 @@ rm -f "$END_MARKER"
|
|||||||
if (($# == 0)); then
|
if (($# == 0)); then
|
||||||
tests=('build_nvim')
|
tests=('build_nvim')
|
||||||
|
|
||||||
|
# Additional threads aren't created in the unit/old tests
|
||||||
if test "$CLANG_SANITIZER" != "TSAN"; then
|
if test "$CLANG_SANITIZER" != "TSAN"; then
|
||||||
# Additional threads are only created when the builtin UI starts, which
|
|
||||||
# doesn't happen in the unit/functional tests
|
|
||||||
if test "${FUNCTIONALTEST}" != "functionaltest-lua"; then
|
if test "${FUNCTIONALTEST}" != "functionaltest-lua"; then
|
||||||
tests+=('unittests')
|
tests+=('unittests')
|
||||||
fi
|
fi
|
||||||
tests+=('functionaltests')
|
tests+=('oldtests')
|
||||||
fi
|
fi
|
||||||
|
|
||||||
tests+=('oldtests' 'install_nvim')
|
tests+=('functionaltests' 'install_nvim')
|
||||||
else
|
else
|
||||||
tests=("$@")
|
tests=("$@")
|
||||||
fi
|
fi
|
||||||
|
Reference in New Issue
Block a user