From 31ef9dffa1ba4ddd260d63603fecc0c3acf3e4e4 Mon Sep 17 00:00:00 2001 From: Sam Doran Date: Mon, 11 Jan 2021 01:42:18 -0500 Subject: [PATCH] [stable-2.10] Remove exit code from traps in tests (#72968) 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 --- .../targets/incidental_inventory_docker_swarm/runme.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/test/integration/targets/incidental_inventory_docker_swarm/runme.sh b/test/integration/targets/incidental_inventory_docker_swarm/runme.sh index e2ba6869e83..b93d386ae1c 100755 --- a/test/integration/targets/incidental_inventory_docker_swarm/runme.sh +++ b/test/integration/targets/incidental_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