Disable junit callback on roles_arg_spec_tests (#73663)
This prevents the role arg spec validation tasks from showing up as failure in the CI output.
This commit is contained in:
parent
c22bc46cb9
commit
3ab52f2965
2 changed files with 17 additions and 5 deletions
|
@ -2,6 +2,18 @@
|
||||||
|
|
||||||
set -eux
|
set -eux
|
||||||
|
|
||||||
|
# This effectively disables junit callback output by directing the output to
|
||||||
|
# a directory ansible-test will not look at.
|
||||||
|
#
|
||||||
|
# Since the failures in these tests are on the role arg spec validation and the
|
||||||
|
# name for those tasks is fixed (we cannot add "EXPECTED FAILURE" to the name),
|
||||||
|
# disabling the junit callback output is the easiest way to prevent these from
|
||||||
|
# showing up in test run output.
|
||||||
|
#
|
||||||
|
# Longer term, an option can be added to the junit callback allowing a custom
|
||||||
|
# regexp to be supplied rather than the hard coded "EXPECTED FAILURE".
|
||||||
|
export JUNIT_OUTPUT_DIR="${OUTPUT_DIR}"
|
||||||
|
|
||||||
# Various simple role scenarios
|
# Various simple role scenarios
|
||||||
ansible-playbook test.yml -i ../../inventory "$@"
|
ansible-playbook test.yml -i ../../inventory "$@"
|
||||||
|
|
||||||
|
|
|
@ -71,7 +71,7 @@
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- block:
|
- block:
|
||||||
- name: "EXPECTED FAILURE: Invalid role usage"
|
- name: "Invalid role usage"
|
||||||
include_role:
|
include_role:
|
||||||
name: b
|
name: b
|
||||||
vars:
|
vars:
|
||||||
|
@ -114,7 +114,7 @@
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- block:
|
- block:
|
||||||
- name: "EXPECTED FAILURE: Invalid role usage"
|
- name: "Invalid role usage"
|
||||||
import_role:
|
import_role:
|
||||||
name: b
|
name: b
|
||||||
vars:
|
vars:
|
||||||
|
@ -172,7 +172,7 @@
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- block:
|
- block:
|
||||||
- name: "EXPECTED FAILURE: Test import_role of role C (missing a_str)"
|
- name: "Test import_role of role C (missing a_str)"
|
||||||
import_role:
|
import_role:
|
||||||
name: c
|
name: c
|
||||||
vars:
|
vars:
|
||||||
|
@ -197,7 +197,7 @@
|
||||||
- ansible_failed_result.argument_spec_data == main_expected_returned_spec
|
- ansible_failed_result.argument_spec_data == main_expected_returned_spec
|
||||||
|
|
||||||
- block:
|
- block:
|
||||||
- name: "EXPECTED FAILURE: Test include_role of role C (missing a_int from `alternate` entry point)"
|
- name: "Test include_role of role C (missing a_int from `alternate` entry point)"
|
||||||
include_role:
|
include_role:
|
||||||
name: c
|
name: c
|
||||||
vars:
|
vars:
|
||||||
|
@ -227,7 +227,7 @@
|
||||||
gather_facts: false
|
gather_facts: false
|
||||||
tasks:
|
tasks:
|
||||||
- block:
|
- block:
|
||||||
- name: "EXPECTED FAILURE: Test import_role of role role_with_no_tasks (missing a_str)"
|
- name: "Test import_role of role role_with_no_tasks (missing a_str)"
|
||||||
import_role:
|
import_role:
|
||||||
name: role_with_no_tasks
|
name: role_with_no_tasks
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue