From 2022b6f57c7701740c0ffd93d054235c42d7ac4e Mon Sep 17 00:00:00 2001 From: maffettone Date: Thu, 9 May 2024 14:44:04 -0700 Subject: [PATCH] test: add core dumps to track segfault --- .github/workflows/tests.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index ab49c2f..74c7750 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -83,9 +83,18 @@ jobs: qserver environment open qserver permissions reload + - name: Enable core dumps + run: | + ulimit -c unlimited + echo "CORE_DUMP_PATH=/tmp/core.%e.%p" | sudo tee -a /etc/environment - name: Test with pytest shell: bash -l {0} run: | set -vxeuo pipefail - pytest -s -v + coverage run -m pytest -s -v + coverage report + + - name: Check for core dump + run: | + ls /tmp/core.*