t/zbd: Fix a bug in max_open_zones()
authorShin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>
Mon, 13 Apr 2020 08:32:58 +0000 (17:32 +0900)
committerJens Axboe <axboe@kernel.dk>
Mon, 13 Apr 2020 14:22:10 +0000 (08:22 -0600)
commite80190b4d71199b3508f06509ac978539b3f76b6
tree2572bb076ebb3f0979894af80d55ac94867bb491
parentf59c2f8e0018707113fdea93f386f63fe77d8c69
t/zbd: Fix a bug in max_open_zones()

When sg_inq command is executed to check if it can provide maximum open
zones, the command's standard output was not discarded and caused
unexpected script behavior. Fix it discarding the standard output.

Reviewed-by: Damien Le Moal <damien.lemoaal@wdc.com>
Signed-off-by: Shin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
t/zbd/functions