Make _run_fio() return the fio exit code such that tests can use that
exit code to verify whether or not a fio run completed successfully.
Fixes: 3891768d9d6b ("blktests: add fio data verification routine")
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
args+=("--runtime=$TIMEOUT")
fi
- if ! fio "${args[@]}" "$@"; then
- echo "fio exited with status $?"
+ fio "${args[@]}" "$@"
+ local rc=$?
+ if [ $rc != 0 ]; then
+ echo "fio exited with status $rc"
cat "$TMPDIR"/fio_perf
fi
+ return $rc
}
# Wrapper around _run_fio used if you need some I/O but don't really care much