diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-06-23 02:24:26 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-06-23 02:27:26 +0300 |
commit | 11673097858a0469fc138908b735038109e3bf59 (patch) | |
tree | 9178c981ef92fbfae496363ad71945f0c6af0701 | |
parent | 5be49738c01652b64fb9a2dc6d25e3e480184262 (diff) | |
download | manaverse-11673097858a0469fc138908b735038109e3bf59.tar.gz manaverse-11673097858a0469fc138908b735038109e3bf59.tar.bz2 manaverse-11673097858a0469fc138908b735038109e3bf59.tar.xz manaverse-11673097858a0469fc138908b735038109e3bf59.zip |
Add way to get coredumps from systemd in runtests (untested).
-rw-r--r-- | .gitlab-ci.yml | 1 | ||||
-rwxr-xr-x | tools/ci/scripts/runtest.sh | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index cb6bedfdc..d974dfe96 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -10,6 +10,7 @@ before_script: - ":; uname -a" - ":; cat /etc/os-release" - ":; pwd" + - ":; cat /proc/sys/kernel/core_pattern" - ":; mkdir logs || true" - ":; ${UPDATEREPOS}" - ":; tools/ci/scripts/dockerretry.sh ${PMUPDATE} >logs/apt.log" diff --git a/tools/ci/scripts/runtest.sh b/tools/ci/scripts/runtest.sh index 7bcb2b518..85286d07e 100755 --- a/tools/ci/scripts/runtest.sh +++ b/tools/ci/scripts/runtest.sh @@ -9,7 +9,7 @@ function check_is_run { cp ./src/manaplus ./logs/ cp -r core* ./logs/ sleep 10s - ls + systemd-coredumpctl --output=cored ./src/manaplus || true COREFILE=$(find . -maxdepth 1 -name "core*" | head -n 1) if [[ -f "$COREFILE" ]]; then gdb -c "$COREFILE" ./src/manaplus -ex "thread apply all bt" -ex "set pagination 0" -batch |