diff options
author | Tim Burke <tim.burke@gmail.com> | 2021-03-11 15:11:17 -0800 |
---|---|---|
committer | Tim Burke <tim.burke@gmail.com> | 2021-03-11 17:33:48 -0800 |
commit | 1afad5c492ed5a30f5f2c5c24fba06bc968328d9 (patch) | |
tree | e97be3d59e01dc75ea0d8e804992f76e999965cb /tools/playbooks/cors/post.yaml | |
parent | c2f619129c7f1f714229a1be31303dd7520c040f (diff) | |
download | swift-1afad5c492ed5a30f5f2c5c24fba06bc968328d9.tar.gz |
cors-tests: Increase timeouts for setup operations
Drive-bys:
* Only copy outputs when there are outputs to copy
* Print tracebacks when there's an issue running a selenium driver
Change-Id: I0807af4525a13a30baf27ada40eeabe311b44296
Diffstat (limited to 'tools/playbooks/cors/post.yaml')
-rw-r--r-- | tools/playbooks/cors/post.yaml | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tools/playbooks/cors/post.yaml b/tools/playbooks/cors/post.yaml index b0e4ba438..4bc84bdcd 100644 --- a/tools/playbooks/cors/post.yaml +++ b/tools/playbooks/cors/post.yaml @@ -1,6 +1,11 @@ - hosts: all become: true tasks: + - name: Check for geckodriver log + stat: + path: '{{ ansible_env.HOME }}/geckodriver.log' + register: geckodriver_output + - name: Copy geckodriver log from worker nodes to executor node synchronize: src: '{{ ansible_env.HOME }}/geckodriver.log' @@ -8,6 +13,12 @@ mode: pull copy_links: true verify_host: true + when: geckodriver_output.stat.exists == true + + - name: Check for CORS test output + stat: + path: '{{ ansible_env.HOME }}/cors-test-results.txt' + register: test_output - name: Copy CORS tests output from worker nodes to executor node synchronize: @@ -16,6 +27,7 @@ mode: pull copy_links: true verify_host: true + when: test_output.stat.exists == true - zuul_return: data: @@ -23,3 +35,4 @@ artifacts: - name: CORS test results url: cors-test-results.txt + when: test_output.stat.exists == true |