mirror of https://gitee.com/openkylin/libvirt.git
ci: integration: Fix the test on avocado directory existence
It's a directory, so -d should be used with 'test'. Signed-off-by: Erik Skultety <eskultet@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
ddc4898080
commit
1df36ecbd0
|
@ -56,7 +56,7 @@
|
|||
|
||||
.collect-logs: &collect-logs
|
||||
- mkdir logs
|
||||
- test -e "$SCRATCH_DIR"/avocado && sudo mv "$SCRATCH_DIR"/avocado/latest/test-results logs/avocado;
|
||||
- test -d "$SCRATCH_DIR"/avocado && sudo mv "$SCRATCH_DIR"/avocado/latest/test-results logs/avocado;
|
||||
- sudo coredumpctl info --no-pager > logs/coredumpctl.txt
|
||||
- sudo mv /var/log/libvirt logs/libvirt
|
||||
- sudo chown -R $(whoami):$(whoami) logs
|
||||
|
|
Loading…
Reference in New Issue