From: Bart Van Assche Date: Fri, 28 Sep 2018 21:51:30 +0000 (-0700) Subject: t/zbd/test-zbd-support: Set fio aux path and forbid file creation X-Git-Tag: fio-3.11~11 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=97e41ee4267f798bd7a5453259cc518addbf9db2 t/zbd/test-zbd-support: Set fio aux path and forbid file creation Set the fio aux path to /tmp to avoid cluttering the directory from which the test scripts are run. Disallow file creation to make tests fail if the block device against which these are run does not exist. 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 afe22909..fd30f5c6 100755 --- a/t/zbd/test-zbd-support +++ b/t/zbd/test-zbd-support @@ -81,13 +81,14 @@ is_scsi_device() { } run_fio() { - local fio + local fio opts fio=$(dirname "$0")/../../fio - { echo; echo "fio $*"; echo; } >>"${logfile}.${test_number}" + opts=("--aux-path=/tmp" "--allow_file_create=0" "$@") + { echo; echo "fio ${opts[*]}"; echo; } >>"${logfile}.${test_number}" - "${dynamic_analyzer[@]}" "$fio" "$@" + "${dynamic_analyzer[@]}" "$fio" "${opts[@]}" } run_one_fio_job() {