[libvirt PATCH 3/7] ci: integration: Fix the test on avocado directory existence

Erik Skultety eskultet at redhat.com
Fri Oct 14 11:28:41 UTC 2022


It's a directory, so -d should be used with 'test'.

Signed-off-by: Erik Skultety <eskultet at redhat.com>
---
 ci/integration-template.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ci/integration-template.yml b/ci/integration-template.yml
index bb8969da19..2e7802dbe0 100644
--- a/ci/integration-template.yml
+++ b/ci/integration-template.yml
@@ -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
-- 
2.37.3



More information about the libvir-list mailing list