containerd/script/test
Adelina Tuvenie e6538b8bce Add trap to cri-integration test script
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>
2021-08-10 13:37:05 +03:00
..
cri-integration.sh Add trap to cri-integration test script 2021-08-10 13:37:05 +03:00
utils.sh scripts: declare ROOT closer to where it's used, and some DRY changes 2021-08-03 17:27:03 +02:00