diff --git a/test/integration/targets/roles_arg_spec/runme.sh b/test/integration/targets/roles_arg_spec/runme.sh index 02eb961e16a..680d9dd9867 100755 --- a/test/integration/targets/roles_arg_spec/runme.sh +++ b/test/integration/targets/roles_arg_spec/runme.sh @@ -2,6 +2,18 @@ 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 ansible-playbook test.yml -i ../../inventory "$@" diff --git a/test/integration/targets/roles_arg_spec/test.yml b/test/integration/targets/roles_arg_spec/test.yml index 454b68de20b..faed945afb9 100644 --- a/test/integration/targets/roles_arg_spec/test.yml +++ b/test/integration/targets/roles_arg_spec/test.yml @@ -71,7 +71,7 @@ tasks: - block: - - name: "EXPECTED FAILURE: Invalid role usage" + - name: "Invalid role usage" include_role: name: b vars: @@ -114,7 +114,7 @@ tasks: - block: - - name: "EXPECTED FAILURE: Invalid role usage" + - name: "Invalid role usage" import_role: name: b vars: @@ -172,7 +172,7 @@ tasks: - 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: name: c vars: @@ -197,7 +197,7 @@ - ansible_failed_result.argument_spec_data == main_expected_returned_spec - 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: name: c vars: @@ -227,7 +227,7 @@ gather_facts: false tasks: - 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: name: role_with_no_tasks