From 1afad5c492ed5a30f5f2c5c24fba06bc968328d9 Mon Sep 17 00:00:00 2001 From: Tim Burke Date: Thu, 11 Mar 2021 15:11:17 -0800 Subject: 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 --- tools/playbooks/cors/post.yaml | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'tools') 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 -- cgit v1.2.1