Hello Bhagyesh,
I have checked with recent auto-tests runs of sanity-hsm, and they all show full script execution with no problem and with multiple "Copytool is stopped on ..."/"Copytool has stopped in ..." msgs (in fact one for each sub-test using copytoll_cleanup() function) in their outputs.
So can you better detail the problem you have encountered ?
OTOH, re-reading Bash/set documentation (https://www.gnu.org/software/bash/manual/html_node/The-Set-Builtin.html), I understand that when "set -e" is being used, a simple command failure can lead to shell/script exit, even if this does not seem to occur ... Is this what you mean ?
And then that the :
construct should be replaced by :
to avoid any problem?
It seems there are other places in sanity-hsm.sh and sanity.sh with the same error test (and may be other test scripts).
Why do we need set -e? (it is in all test scripts)