summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/handlers/runme.sh
diff options
context:
space:
mode:
authorPierre-Louis Bonicoli <pierre-louis.bonicoli@libregerbil.fr>2015-07-16 03:54:12 +0200
committerMichael Scherer <mscherer@users.noreply.github.com>2016-10-21 20:17:42 +0200
commit3edac76e1b932b05acfca5961eea95323c0e8c8b (patch)
tree3e17546e93b2f0837cb048709ba66f3cd05c6d92 /test/integration/targets/handlers/runme.sh
parentEnable the git test on py3 (diff)
downloadansible-3edac76e1b932b05acfca5961eea95323c0e8c8b.tar.xz
ansible-3edac76e1b932b05acfca5961eea95323c0e8c8b.zip
tests: check that handlers are able to use 'include'
Diffstat (limited to 'test/integration/targets/handlers/runme.sh')
-rwxr-xr-xtest/integration/targets/handlers/runme.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/integration/targets/handlers/runme.sh b/test/integration/targets/handlers/runme.sh
index 48dfd8368b..b1af33b335 100755
--- a/test/integration/targets/handlers/runme.sh
+++ b/test/integration/targets/handlers/runme.sh
@@ -34,3 +34,9 @@ ansible-playbook test_handlers.yml -i inventory.handlers -v "$@" --tags scenario
# Forcing false in play, which overrides command line
[ "$(ansible-playbook test_force_handlers.yml -i inventory.handlers -v "$@" --tags force_false_in_play --force-handlers \
| egrep -o CALLED_HANDLER_. | sort | uniq | xargs)" = "CALLED_HANDLER_B" ]
+
+[ "$(ansible-playbook test_handlers_include.yml -i ../../inventory -v "$@" --tags playbook_include_handlers \
+| egrep -o 'RUNNING HANDLER \[.*?]')" = "RUNNING HANDLER [test handler]" ]
+
+[ "$(ansible-playbook test_handlers_include.yml -i ../../inventory -v "$@" --tags role_include_handlers \
+| egrep -o 'RUNNING HANDLER \[test_handlers_include : .*?]')" = "RUNNING HANDLER [test_handlers_include : test handler]" ]