diff options
author | Tim Burke <tim.burke@gmail.com> | 2020-12-15 16:31:15 -0800 |
---|---|---|
committer | Tim Burke <tburke@nvidia.com> | 2020-12-17 18:58:09 +0000 |
commit | 73aa48a823a2e602089c3e37d6b9ec4c9e19d35f (patch) | |
tree | 68055bbd6e9f5a59697e3361c571bd8da77b6d9f /tools | |
parent | 28cef6767fe28062563d1bb18722184139df50e8 (diff) | |
download | swift-73aa48a823a2e602089c3e37d6b9ec4c9e19d35f.tar.gz |
s3-tests: Only try to copy outputs when there *are* outputs
That way we avoid POST_FAILUREs when the real problem was in run.
Change-Id: I9eb84d1c794d58f0af3b7d78d3bc4660c1823dc8
Diffstat (limited to 'tools')
-rw-r--r-- | tools/playbooks/ceph-s3tests/post.yaml | 5 |
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 |