From f585aa065a5de7b838fe5db883dc601965b1163b Mon Sep 17 00:00:00 2001 From: Sam Doran Date: Thu, 21 May 2020 15:48:41 -0400 Subject: [PATCH] inventory_docker_swarm test - Remove exit code from trap (#391) Setting the exit code in a trap overrides the exit code that caused the trap to be called. This means if the test failed and called the trap, the test will exit with 0 rather than the failure exit code. --- tests/integration/targets/inventory_docker_swarm/runme.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/tests/integration/targets/inventory_docker_swarm/runme.sh b/tests/integration/targets/inventory_docker_swarm/runme.sh index e2ba6869e8..b93d386ae1 100755 --- a/tests/integration/targets/inventory_docker_swarm/runme.sh +++ b/tests/integration/targets/inventory_docker_swarm/runme.sh @@ -8,7 +8,6 @@ cleanup() { echo "Cleanup" ansible-playbook playbooks/swarm_cleanup.yml echo "Done" - exit 0 } trap cleanup INT TERM EXIT