summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorZuul <zuul@review.opendev.org>2020-12-18 10:39:46 +0000
committerGerrit Code Review <review@openstack.org>2020-12-18 10:39:46 +0000
commitcb94d7539c3b392f8de32bc18bcfc45232789bb6 (patch)
treef15382f43148029d465efd706ff29bb2f0815dd3 /tools
parentd186af14faf15e8f1e6a0c1f3a5d916f9a791749 (diff)
parent73aa48a823a2e602089c3e37d6b9ec4c9e19d35f (diff)
downloadswift-cb94d7539c3b392f8de32bc18bcfc45232789bb6.tar.gz
Merge "s3-tests: Only try to copy outputs when there *are* outputs"
Diffstat (limited to 'tools')
-rw-r--r--tools/playbooks/ceph-s3tests/post.yaml5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/playbooks/ceph-s3tests/post.yaml b/tools/playbooks/ceph-s3tests/post.yaml
index 84f6be939..d35b93d51 100644
--- a/tools/playbooks/ceph-s3tests/post.yaml
+++ b/tools/playbooks/ceph-s3tests/post.yaml
@@ -1,6 +1,10 @@
- hosts: all
become: true
tasks:
+ - name: Check for s3-tests outputs
+ stat:
+ path: '{{ ansible_env.HOME }}/s3compat/output'
+ register: s3_tests_output
- name: Copy s3-tests outputs from worker nodes to executor node
synchronize:
src: '{{ ansible_env.HOME }}/s3compat/output'
@@ -8,3 +12,4 @@
mode: pull
copy_links: true
verify_host: true
+ when: s3_tests_output.stat.exists == true