t/zbd: improve error handling for test scripts
authorVincent Fu <vincent.fu@wdc.com>
Tue, 19 May 2020 18:55:56 +0000 (14:55 -0400)
committerVincent Fu <vincent.fu@wdc.com>
Wed, 20 May 2020 17:47:56 +0000 (13:47 -0400)
commitee5e07bf494cbc26072c5aa21926b8cb4797728a
tree7b5a5e0c34c1685d28d8bd6bd105d4fb8b767024
parent771dbb520cc51ca16c7762c8cf4fcdba08a64250
t/zbd: improve error handling for test scripts

Use exit instead of return to abort the scripts if modprobe null_blk
fails. With return, the script continues to run after printing an error
message. Also abort if the null block device setup fails for the regular
null block device test script.

Reviewed-by: Damien Le Moal <damien.lemoal@wdc.com>
Signed-off-by: Vincent Fu <vincent.fu@wdc.com>
t/zbd/run-tests-against-regular-nullb
t/zbd/run-tests-against-zoned-nullb