summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Burke <tim.burke@gmail.com>2020-12-15 16:31:15 -0800
committerTim Burke <tburke@nvidia.com>2021-02-11 21:25:29 +0000
commit9820aad4a96ec565cd77fb9a96b8494b3640be06 (patch)
treedeeed81a97cd0cee71b0c1e0a6219f639801fc81
parent69a95a52a5a0dc383d30719be6d5c25273ae631d (diff)
downloadswift-9820aad4a96ec565cd77fb9a96b8494b3640be06.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 (cherry picked from commit 73aa48a823a2e602089c3e37d6b9ec4c9e19d35f)
-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