File tree Expand file tree Collapse file tree
collection/stages/roles/cpms_test/tasks Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3939 vars :
4040 must_gather_suffix : " cpms-{{ cpms_tests_type }}"
4141
42+ - name : Check if JUnit file exists
43+ ansible.builtin.stat :
44+ path : " {{ cpms_results_subdir }}/{{ cpms_test_junit_filename }}"
45+ register : _cpms_junit_file
46+
4247- name : Rename JUnit XML to match expected prefix
4348 ansible.builtin.copy :
4449 src : " {{ cpms_results_subdir }}/{{ cpms_test_junit_filename }}"
4550 dest : " {{ cpms_results_subdir }}/junit_e2e_{{ cpms_tests_type }}.xml"
4651 remote_src : yes
4752 mode : u=rw,g=rw,o=r
48- when : (cpms_results_subdir + '/' + cpms_test_junit_filename) is file
53+ when : _cpms_junit_file.stat.exists
4954
5055- name : Post openshift-test
5156 ansible.builtin.include_role :
5661 key_for_filtering_results : " cpms"
5762 test_name : " {{ cpms_test_name }}-{{ cpms_tests_type }}"
5863 results_dir : " {{ cpms_results_subdir }}"
59- when : (cpms_results_subdir + '/' + cpms_test_junit_filename) is file
64+ when : _cpms_junit_file.stat.exists
You can’t perform that action at this time.
0 commit comments