Merge "Remove testr and stestr specific roles"
This commit is contained in:
commit
6283695966
@ -1,2 +0,0 @@
|
||||
---
|
||||
zuul_work_dir: "src/{{ zuul.project.canonical_name }}"
|
@ -1,23 +0,0 @@
|
||||
- name: Register stestr directory
|
||||
stat:
|
||||
path: "{{ zuul_work_dir }}/.stestr"
|
||||
register: stestr_stat
|
||||
|
||||
- name: Process testr artifacts
|
||||
include: process.yaml
|
||||
when:
|
||||
- stestr_stat.stat.exists
|
||||
|
||||
- name: Collect test-results
|
||||
synchronize:
|
||||
dest: "{{ zuul.executor.log_root }}"
|
||||
mode: pull
|
||||
src: "{{ zuul_work_dir }}/{{ item }}"
|
||||
verify_host: true
|
||||
with_items:
|
||||
- "*testr_results.html.gz"
|
||||
- "*testrepository.subunit.gz"
|
||||
when:
|
||||
- stestr_stat.stat.exists
|
||||
# some tox runs may not create test-results
|
||||
failed_when: false
|
@ -1,31 +0,0 @@
|
||||
- name: Generate testrepository.subunit file
|
||||
shell: ".tox/{{ tox_envlist }}/bin/stestr last --subunit > ./testrepository.subunit"
|
||||
args:
|
||||
chdir: "{{ zuul_work_dir }}"
|
||||
|
||||
- name: Generate testr_results.html file
|
||||
command: "/usr/os-testr-env/bin/subunit2html ./testrepository.subunit testr_results.html"
|
||||
args:
|
||||
chdir: "{{ zuul_work_dir }}"
|
||||
|
||||
- name: Register testrepository.subunit file
|
||||
stat:
|
||||
path: "{{ zuul_work_dir }}/testrepository.subunit"
|
||||
register: p
|
||||
|
||||
- name: Compress testrepository.subunit file
|
||||
archive:
|
||||
path: "{{ p.stat.path }}"
|
||||
when:
|
||||
- p.stat.exists
|
||||
|
||||
- name: Register testr_results.html file
|
||||
stat:
|
||||
path: "{{ zuul_work_dir }}/testr_results.html"
|
||||
register: html
|
||||
|
||||
- name: Compress testr_results.html file
|
||||
archive:
|
||||
path: "{{ html.stat.path }}"
|
||||
when:
|
||||
- html.stat.exists
|
@ -1,2 +0,0 @@
|
||||
---
|
||||
zuul_work_dir: "src/{{ zuul.project.canonical_name }}"
|
@ -1,23 +0,0 @@
|
||||
- name: Register testrepository directory
|
||||
stat:
|
||||
path: "{{ zuul_work_dir }}/.testrepository"
|
||||
register: testrepository_stat
|
||||
|
||||
- name: Process testr artifacts
|
||||
include: process.yaml
|
||||
when:
|
||||
- testrepository_stat.stat.exists
|
||||
|
||||
- name: Collect test-results
|
||||
synchronize:
|
||||
dest: "{{ zuul.executor.log_root }}"
|
||||
mode: pull
|
||||
src: "{{ zuul_work_dir }}/{{ item }}"
|
||||
verify_host: true
|
||||
with_items:
|
||||
- "*testr_results.html.gz"
|
||||
- "*testrepository.subunit.gz"
|
||||
when:
|
||||
- testrepository_stat.stat.exists
|
||||
# some tox runs may not create test-results
|
||||
failed_when: false
|
@ -1,33 +0,0 @@
|
||||
- name: Generate testrepository.subunit file
|
||||
# TODO(pabelanger): We cannot depend on tox_envlist here!!!
|
||||
shell: ".tox/{{ tox_envlist }}/bin/testr last --subunit > ./testrepository.subunit"
|
||||
args:
|
||||
chdir: "{{ zuul_work_dir }}"
|
||||
|
||||
- name: Generate testr_results.html file
|
||||
# TODO(pabelanger): We cannot depend on /usr/os-testr-env here!!!
|
||||
command: "/usr/os-testr-env/bin/subunit2html ./testrepository.subunit testr_results.html"
|
||||
args:
|
||||
chdir: "{{ zuul_work_dir }}"
|
||||
|
||||
- name: Register testrepository.subunit file
|
||||
stat:
|
||||
path: "{{ zuul_work_dir }}/testrepository.subunit"
|
||||
register: p
|
||||
|
||||
- name: Compress testrepository.subunit file
|
||||
archive:
|
||||
path: "{{ p.stat.path }}"
|
||||
when:
|
||||
- p.stat.exists
|
||||
|
||||
- name: Register testr_results.html file
|
||||
stat:
|
||||
path: "{{ zuul_work_dir }}/testr_results.html"
|
||||
register: html
|
||||
|
||||
- name: Compress testr_results.html file
|
||||
archive:
|
||||
path: "{{ html.stat.path }}"
|
||||
when:
|
||||
- html.stat.exists
|
Loading…
Reference in New Issue
Block a user