Merge "add report collection for downstream jobs"
This commit is contained in:
commit
d05aa842c2
@ -16,3 +16,6 @@
|
|||||||
include_tasks: tasks/run.yml
|
include_tasks: tasks/run.yml
|
||||||
when:
|
when:
|
||||||
- test.tests is defined
|
- test.tests is defined
|
||||||
|
|
||||||
|
- name: Collect Tobiko logs and reports
|
||||||
|
include_tasks: tasks/report.yml
|
||||||
|
14
infrared/tasks/report.yml
Normal file
14
infrared/tasks/report.yml
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
- name: Create Tobiko report
|
||||||
|
shell: |
|
||||||
|
cd "{{ test.dir }}"
|
||||||
|
source "{{ test.venv }}/bin/activate"
|
||||||
|
tox -e report
|
||||||
|
|
||||||
|
- fetch:
|
||||||
|
src: "{{ test.dir }}/{{ item }}"
|
||||||
|
dest: "{{ inventory_dir }}/tobiko_results_{{ test.results_dir_suffix }}/"
|
||||||
|
flat: yes
|
||||||
|
loop:
|
||||||
|
- tobiko.conf
|
||||||
|
- tobiko.log
|
||||||
|
- tobiko_results.html
|
@ -1,6 +1,6 @@
|
|||||||
[DEFAULT]
|
[DEFAULT]
|
||||||
debug = true
|
debug = true
|
||||||
log_file = tobiko.log
|
log_file = "{{ test.dir }}/tobiko.log"
|
||||||
log_dir = .
|
log_dir = .
|
||||||
|
|
||||||
[nova]
|
[nova]
|
||||||
|
@ -41,6 +41,12 @@ subparsers:
|
|||||||
help: |
|
help: |
|
||||||
The set of tests to execute
|
The set of tests to execute
|
||||||
default: neutron
|
default: neutron
|
||||||
|
results_dir_suffix:
|
||||||
|
type: Value
|
||||||
|
help: |
|
||||||
|
Suffix string to add to tobiko_results dir
|
||||||
|
example : default will be tobiko_results_1st
|
||||||
|
default: "1st"
|
||||||
refsec:
|
refsec:
|
||||||
type: Value
|
type: Value
|
||||||
help: |
|
help: |
|
||||||
|
@ -6,9 +6,9 @@ set -xeu
|
|||||||
|
|
||||||
|
|
||||||
TESTR_DIR=${TESTR_DIR:-$(pwd)}
|
TESTR_DIR=${TESTR_DIR:-$(pwd)}
|
||||||
BUILD_DIR=${BUILD_DIR:-${TESTR_DIR}/report/build}
|
BUILD_DIR=${BUILD_DIR:-${TESTR_DIR}}
|
||||||
SUBUNIT_FILE=${SUBUNIT_FILE:-${BUILD_DIR}/last.subunit}
|
SUBUNIT_FILE=${SUBUNIT_FILE:-${BUILD_DIR}/last.subunit}
|
||||||
TESTR_RESULTS_HTML=${TESTR_RESULTS_HTML:-${BUILD_DIR}/testr_results.html}
|
TESTR_RESULTS_HTML=${TESTR_RESULTS_HTML:-${BUILD_DIR}/tobiko_results.html}
|
||||||
|
|
||||||
make_testr_results_html() {
|
make_testr_results_html() {
|
||||||
mkdir -p "$(dirname ${SUBUNIT_FILE})"
|
mkdir -p "$(dirname ${SUBUNIT_FILE})"
|
||||||
|
Loading…
Reference in New Issue
Block a user