From a5de6206351e8bf3e8fb4020acdf6e33198a974c Mon Sep 17 00:00:00 2001 From: Mark Laing Date: Mon, 18 Nov 2024 12:56:41 +0000 Subject: [PATCH] test/includes: Set ulimit before spawning LXD. Signed-off-by: Mark Laing --- test/includes/lxd.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/includes/lxd.sh b/test/includes/lxd.sh index dca759e52a60..7daad19356ec 100644 --- a/test/includes/lxd.sh +++ b/test/includes/lxd.sh @@ -32,6 +32,9 @@ spawn_lxd() { echo "==> Spawning lxd in ${lxddir}" # shellcheck disable=SC2086 + # Set ulimit to ensure core dump is outputted. + ulimit -c unlimited + if [ "${LXD_NETNS}" = "" ]; then LXD_DIR="${lxddir}" lxd --logfile "${lxddir}/lxd.log" "${DEBUG-}" "$@" 2>&1 & else