[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 <sdoran@redhat.com>
This commit is contained in:
Sam Doran 2021-01-11 01:42:18 -05:00 committed by GitHub
parent c5248f756c
commit 31ef9dffa1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -8,7 +8,6 @@ cleanup() {
echo "Cleanup" echo "Cleanup"
ansible-playbook playbooks/swarm_cleanup.yml ansible-playbook playbooks/swarm_cleanup.yml
echo "Done" echo "Done"
exit 0
} }
trap cleanup INT TERM EXIT trap cleanup INT TERM EXIT