Skip to content

Commit 8764cfd

Browse files
mcgrofKPD
authored andcommitted
fstests: collect ${seq}.*.fsx{good,bad,log} results too
Ted suggests to collect these files too. Suggested-by: Theodore Ts'o <tytso@mit.edu> Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
1 parent 7f47070 commit 8764cfd

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

playbooks/roles/fstests/tasks/main.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1377,6 +1377,17 @@
13771377
patterns: "*.out.bad"
13781378
register: failed_tests
13791379

1380+
- name: Look for all other test attribute files
1381+
tags: [ 'oscheck', 'fstests', 'copy_results', 'test_artifacts' ]
1382+
become: yes
1383+
become_flags: 'su - -c'
1384+
become_method: sudo
1385+
find:
1386+
paths: "{{ fstests_data_target }}"
1387+
recurse: yes
1388+
patterns: "*.fsx{good,bad,log}"
1389+
register: test_artifacts
1390+
13801391
- name: Look for TFB results files
13811392
tags: [ 'copy_results', 'failed_tests', 'tfb' ]
13821393
become: yes
@@ -1472,6 +1483,21 @@
14721483
- not fstests_tfp_copy_enable_list|bool
14731484
- failed_tests.matched > 0
14741485

1486+
- name: Copy over all other test attribute files for test results
1487+
tags: [ 'oscheck', 'fstests', 'copy_results', 'copy_final', 'test_artifacts', 'tfb' ]
1488+
vars:
1489+
item_path_without_host: "{{ item.path | regex_replace('results') | regex_replace(ansible_host) }}"
1490+
fetch:
1491+
src: "{{ item.path }}"
1492+
dest: "{{ fstests_results_target }}/{{ item_path_without_host | regex_replace(fstests_data_target | regex_escape()) | regex_replace('^/', '') }}"
1493+
flat: yes
1494+
validate_checksum: False
1495+
with_items: "{{ test_artifacts.files }}"
1496+
loop_control:
1497+
label: "{{ item.path | regex_replace(fstests_data_target | regex_escape()) | regex_replace('^/', '') }}"
1498+
when:
1499+
- test_artifacts.matched > 0
1500+
14751501
- name: Check if respective bad full file exists
14761502
tags: [ 'oscheck', 'fstests', 'copy_results', 'failed_tests' ]
14771503
become: yes

0 commit comments

Comments
 (0)