summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Doran <sdoran@redhat.com>2021-01-10 14:58:25 -0500
committerGitHub <noreply@github.com>2021-01-10 13:58:25 -0600
commit98eb810f7d3ccc6eb2a007e915ecdb88d9f2b218 (patch)
tree0d9bd83797c27ca15560e393badde24754c5b52f
parentead63f202155c2dbfdd7d9e222ac2c2137ddb904 (diff)
downloadansible-98eb810f7d3ccc6eb2a007e915ecdb88d9f2b218.tar.gz
[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 <sdoran@redhat.com>
-rwxr-xr-xtest/integration/targets/inventory_docker_swarm/runme.sh1
1 files changed, 0 insertions, 1 deletions
diff --git a/test/integration/targets/inventory_docker_swarm/runme.sh b/test/integration/targets/inventory_docker_swarm/runme.sh
index e2ba6869e8..b93d386ae1 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