mirror of
https://github.com/containerd/containerd.git
synced 2026-07-04 05:40:18 +00:00
The cri-integration.sh script sets errexit option. This does not work properly on Bash in Windows, espectially when the script is piped to something else ( tee in this case ). In this particular case, the problem arises from the fact that if the script exits prematurely, it will not get a chance to call test_teardown and thus clean the remaining containerd process, thus the whole command will hang indefinetly. Adding a simple trap on EXIT to call test_teardown will easily fix this. Signed-off-by: Adelina Tuvenie <atuvenie@cloudbasesolutions.com>