On 6/11/25 10:16 PM, Shinichiro Kawasaki wrote:
I'm afraid, no. I'm thinking about this kind of test cases: - it uses "set -e" - it does not use subshell - it has clean up code in test() or test_device() ('IOW, it does not register cleanup handler by _register_test_cleanup()) For such test cases, the clean up code in test() or test_device() can be skipped by error exit by "set -e" regardless of the "set +e" in _call_test().
Let's rely on source code review to catch test scripts that use set -e without subshell. Thanks, Bart.