t/zbd: make the test script easier to terminate
authorDmitry Fomichev <dmitry.fomichev@wdc.com>
Mon, 25 May 2020 21:32:56 +0000 (06:32 +0900)
committerJens Axboe <axboe@kernel.dk>
Tue, 26 May 2020 00:21:45 +0000 (18:21 -0600)
commitc96b385b6e0c78478697713e6da9174fba2432d3
treed0fd7bc8858c79bb46cdc6a02c23b7a0fcee4256
parent332fa1782b4de106d2230ba743b11c4c239796ea
t/zbd: make the test script easier to terminate

Very often, it takes more than one ^C to terminate test-zbd-support
script. Just a single ^C does end the test that is currently being
executed, but then the script proceeds to the next test. This commit
adds a simple signal handler to exit the test loop after receiving
a Ctrl-C.

Reviewed-by: Damien Le Moal <damien.lemoal@wdc.com>
Signed-off-by: Dmitry Fomichev <dmitry.fomichev@wdc.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
t/zbd/test-zbd-support