mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 17:34:18 +03:00
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 <eskultet@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
1df36ecbd0
commit
124eb56342
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user