From 97e41ee4267f798bd7a5453259cc518addbf9db2 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Fri, 28 Sep 2018 14:51:30 -0700 Subject: [PATCH] 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 --- t/zbd/test-zbd-support | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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() { -- 2.25.1