From: Erik Skultety Date: Fri, 14 Oct 2022 10:33:28 +0000 (+0200) Subject: ci: integration: Fix the test on avocado directory existence X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=1df36ecbd009a27805a8cf7c41259c2320ca8653;p=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 Reviewed-by: Michal Privoznik --- 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