summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-06-23 02:24:26 +0300
committerAndrei Karas <akaras@inbox.ru>2017-06-23 02:27:26 +0300
commit11673097858a0469fc138908b735038109e3bf59 (patch)
tree9178c981ef92fbfae496363ad71945f0c6af0701
parent5be49738c01652b64fb9a2dc6d25e3e480184262 (diff)
downloadmv-11673097858a0469fc138908b735038109e3bf59.tar.gz
mv-11673097858a0469fc138908b735038109e3bf59.tar.bz2
mv-11673097858a0469fc138908b735038109e3bf59.tar.xz
mv-11673097858a0469fc138908b735038109e3bf59.zip
Add way to get coredumps from systemd in runtests (untested).
-rw-r--r--.gitlab-ci.yml1
-rwxr-xr-xtools/ci/scripts/runtest.sh2
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