aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordundargoc <33953936+dundargoc@users.noreply.github.com>2023-02-11 14:51:41 +0100
committerGitHub <noreply@github.com>2023-02-11 14:51:41 +0100
commit24ec0aaa7a1589fd4b67dc44f201842900d81c89 (patch)
treee48fb5f8d378b224a90e9f3b0e0f4d70de151de1
parent27177e581902967dcf4f2f426464da1b636ca420 (diff)
downloadrneovim-24ec0aaa7a1589fd4b67dc44f201842900d81c89.tar.gz
rneovim-24ec0aaa7a1589fd4b67dc44f201842900d81c89.tar.bz2
rneovim-24ec0aaa7a1589fd4b67dc44f201842900d81c89.zip
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.
-rwxr-xr-xci/run_tests.sh23
1 files changed, 3 insertions, 20 deletions
diff --git a/ci/run_tests.sh b/ci/run_tests.sh
index ddd364ae86..6899054e15 100755
--- 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}"