From 31e7c05d534b4aab490157ee8d32574120064642 Mon Sep 17 00:00:00 2001 From: Paul Belanger Date: Thu, 1 Jun 2017 13:09:19 -0400 Subject: [PATCH] Collect testr / testrepository results Check to see if testr / testrepository results have been created. If so, copy them back to zuul-executor so we can publish them. Change-Id: Ic367a7e36d8d6f4921704782adabfba770daea58 Signed-off-by: Paul Belanger --- playbooks/tox/post.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/playbooks/tox/post.yaml b/playbooks/tox/post.yaml index 4e637d85..771b6af0 100644 --- a/playbooks/tox/post.yaml +++ b/playbooks/tox/post.yaml @@ -15,3 +15,14 @@ mode: pull src: "{{ item.path }}/log/" with_items: "{{ result.files }}" + + - name: Collect test-results. + synchronize: + dest: "{{ zuul.executor.log_root }}" + mode: pull + rsync_opts: + - "--ignore-missing-args" + src: "{{ zuul_workspace_root }}/src/{{ zuul.project.canonical_name }}/{{ item }}" + with_items: + - "*testr_results.html.gz" + - "*testrepository.subunit.gz"