From 98eb810f7d3ccc6eb2a007e915ecdb88d9f2b218 Mon Sep 17 00:00:00 2001 From: Sam Doran Date: Sun, 10 Jan 2021 14:58:25 -0500 Subject: [PATCH] [stable-2.9] Remove exit code from traps in tests (#72969) Having the trap exit with a specific code will override the exit code that caused the trap to run, which could mask errors (cherry picked from commit 5157a92139) Co-authored-by: Sam Doran --- test/integration/targets/inventory_docker_swarm/runme.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/test/integration/targets/inventory_docker_swarm/runme.sh b/test/integration/targets/inventory_docker_swarm/runme.sh index e2ba6869e83..b93d386ae1c 100755 --- a/test/integration/targets/inventory_docker_swarm/runme.sh +++ b/test/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