|
1377 | 1377 | patterns: "*.out.bad" |
1378 | 1378 | register: failed_tests |
1379 | 1379 |
|
| 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 | + |
1380 | 1391 | - name: Look for TFB results files |
1381 | 1392 | tags: [ 'copy_results', 'failed_tests', 'tfb' ] |
1382 | 1393 | become: yes |
|
1472 | 1483 | - not fstests_tfp_copy_enable_list|bool |
1473 | 1484 | - failed_tests.matched > 0 |
1474 | 1485 |
|
| 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 | + |
1475 | 1501 | - name: Check if respective bad full file exists |
1476 | 1502 | tags: [ 'oscheck', 'fstests', 'copy_results', 'failed_tests' ] |
1477 | 1503 | become: yes |
|
0 commit comments