From: Erik Skultety Date: Fri, 14 Oct 2022 07:35:04 +0000 (+0200) Subject: ci: integration: Only create a coredump log when a core exists X-Git-Tag: v8.9.0-rc1~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=124eb56342090c6d60db94dca9391bf742e76530;p=thirdparty%2Flibvirt.git ci: integration: Only create a coredump log when a core exists It could be quite confusing looking at the job log artifacts and having an empty coredump log in there, IOW it doesn't really give much confidence that the reporting mechanism actually works. Signed-off-by: Erik Skultety Reviewed-by: Michal Privoznik --- diff --git a/ci/integration-template.yml b/ci/integration-template.yml index 2e7802dbe0..4321f0d29e 100644 --- a/ci/integration-template.yml +++ b/ci/integration-template.yml @@ -57,7 +57,7 @@ .collect-logs: &collect-logs - mkdir logs - test -d "$SCRATCH_DIR"/avocado && sudo mv "$SCRATCH_DIR"/avocado/latest/test-results logs/avocado; - - sudo coredumpctl info --no-pager > logs/coredumpctl.txt + - sudo coredumpctl &>/dev/null && sudo coredumpctl info --no-pager > logs/coredumpctl.txt - sudo mv /var/log/libvirt logs/libvirt - sudo chown -R $(whoami):$(whoami) logs # rename all Avocado stderr/stdout logs to *.log so that GitLab's web UI doesn't mangle the MIME type