commit 24ec0aaa7a1589fd4b67dc44f201842900d81c89
parent 27177e581902967dcf4f2f426464da1b636ca420
Author: dundargoc <33953936+dundargoc@users.noreply.github.com>
Date: Sat, 11 Feb 2023 14:51:41 +0100
ci: don't delete core dumps at the start of the run (#22223)
There shouldn't be any core dumps before we have started testing.
Diffstat:
1 file changed, 3 insertions(+), 20 deletions(-)
diff --git a/ci/run_tests.sh b/ci/run_tests.sh
@@ -6,10 +6,6 @@ set -o pipefail
print_core() {
local app="$1"
local core="$2"
- if test "$app" = quiet; then
- echo "Found core $core"
- return 0
- fi
echo "======= Core file $core ======="
if test "${CI_OS_NAME}" = osx; then
lldb -Q -o "bt all" -f "${app}" -c "${core}"
@@ -19,11 +15,6 @@ print_core() {
}
check_core_dumps() {
- local del=
- if test "$1" = "--delete"; then
- del=1
- shift
- fi
local app="${1:-${BUILD_DIR}/bin/nvim}"
local cores
if test "${CI_OS_NAME}" = osx; then
@@ -39,17 +30,10 @@ check_core_dumps() {
fi
local core
for core in $cores; do
- if test "$del" = "1"; then
- print_core "$app" "$core" >&2
- "$_sudo" rm "$core"
- else
- print_core "$app" "$core"
- fi
+ print_core "$app" "$core"
done
- if test "$app" != quiet; then
- echo 'Core dumps found'
- exit 1
- fi
+ echo 'Core dumps found'
+ exit 1
}
check_logs() {
@@ -161,7 +145,6 @@ installtests() {(
)}
prepare_sanitizer() {
- check_core_dumps --delete quiet
# Invoke nvim to trigger *San early.
if ! ("${BUILD_DIR}"/bin/nvim --version && "${BUILD_DIR}"/bin/nvim -u NONE -e -cq | cat -vet); then
check_sanitizer "${LOG_DIR}"