Re: [PATCH blktests 2/2] check: introduce ERR_EXIT flag

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.




[Index of Archives]     [Linux RAID]     [Linux SCSI]     [Linux ATA RAID]     [IDE]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Device Mapper]

  Powered by Linux