ci: remove core dump checking from test.yml

There is already a superior core dump check in test/helpers.lua, which
makes this obsolete.
This commit is contained in:
dundargoc 2023-03-05 14:46:17 +01:00
parent 98876db155
commit d877aa32f2

View File

@ -268,30 +268,6 @@ jobs:
name: Show logs
run: cat $(find "$LOG_DIR" -type f)
- if: success() || failure() && steps.abort_job.outputs.status == 'success'
name: Show core dumps
run: |
# TODO(dundargoc): app should be luajit for unittests
app="build/bin/nvim"
if test "$RUNNER_OS" = macOS; then
cores="$(find /cores/ -type f -print)"
else
cores="$(find ./ -type f \( -name 'core.*' -o -name core -o -name nvim.core \) -print)"
fi
if test -z "$cores"; then
exit 0
fi
for core in $cores; do
if test "$RUNNER_OS" = macOS; then
lldb -Q -o "bt all" -f "$app" -c "$core"
else
gdb -n -batch -ex 'thread apply all bt full' "$app" -c "$core"
fi
done
echo 'Core dumps found'
exit 1
build-types:
runs-on: ubuntu-22.04
timeout-minutes: 10