t/zbd: improve error handling for test scripts
[fio.git] / t / zbd / run-tests-against-zoned-nullb
index 0952011c576e04af1d5ffedaf4db5a58b40b36f7..53aee3e84caf9fa6c67a3a5817b18690c336d729 100755 (executable)
@@ -8,7 +8,7 @@ scriptdir="$(cd "$(dirname "$0")" && pwd)"
 
 for d in /sys/kernel/config/nullb/*; do [ -d "$d" ] && rmdir "$d"; done
 modprobe -r null_blk
-modprobe null_blk nr_devices=0 || return $?
+modprobe null_blk nr_devices=0 || exit $?
 for d in /sys/kernel/config/nullb/*; do
     [ -d "$d" ] && rmdir "$d"
 done