From: Bart Van Assche Date: Fri, 28 Sep 2018 21:51:29 +0000 (-0700) Subject: t/zbd/test-zbd-support: Ensure that an assertion failure causes this test to fail X-Git-Tag: fio-3.11~12 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=1aa1bd769f8cf63d2ed16261b3c2f7b4241db0ec;p=fio.git t/zbd/test-zbd-support: Ensure that an assertion failure causes this test to fail Switch to threaded mode to make sure that an assertion failure results in a non-zero exit status. Signed-off-by: Bart Van Assche Cc: Damien Le Moal Signed-off-by: Jens Axboe --- diff --git a/t/zbd/test-zbd-support b/t/zbd/test-zbd-support index 6ee5055b..afe22909 100755 --- a/t/zbd/test-zbd-support +++ b/t/zbd/test-zbd-support @@ -113,7 +113,7 @@ run_fio_on_seq() { # Check whether buffered writes are refused. test1() { run_fio --name=job1 --filename="$dev" --rw=write --direct=0 --bs=4K \ - --size="${zone_size}" \ + --size="${zone_size}" --thread=1 \ --zonemode=zbd --zonesize="${zone_size}" 2>&1 | tee -a "${logfile}.${test_number}" | grep -q 'Using direct I/O is mandatory for writing to ZBD drives'