Skip to content

Commit

Permalink
address PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
vshanthe committed Feb 27, 2024
1 parent d41fcf4 commit 9860007
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion hack/run-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,13 +120,26 @@
source .test.env && \
make e2e-local
register: run_tests

- name: Find report.xml file on remote server
find:
paths: "~/py-metadata-{{ run_id }}"
patterns: "*_py_metadata_test_report.xml"
file_type: file
register: report_files

- name: Extract filename from the found files
set_fact:
filename: "{{ report_files.files | first | default({}) }}"
when: report_files.files | length > 0

- name: Copy report.xml to local folder directory
fetch:
src: "~/go-metadata-{{ run_id }}/{{ report_filename }}"
src: "{{ filename.path }}"
dest: "./"
flat: yes
remote_src: yes
ignore_errors: yes

rescue:
- debug:
Expand Down

0 comments on commit 9860007

Please sign in to comment.