]> www.infradead.org Git - users/hch/blktests.git/commitdiff
common/fio: Remove state file in common helper
authorLogan Gunthorpe <logang@deltatee.com>
Thu, 8 Oct 2020 16:40:14 +0000 (10:40 -0600)
committerOmar Sandoval <osandov@fb.com>
Thu, 22 Oct 2020 21:44:12 +0000 (14:44 -0700)
Instead of each individual test removing this file, just do it
in the common helper.

Signed-off-by: Logan Gunthorpe <logang@deltatee.com>
Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
common/fio
tests/nvme/010
tests/nvme/011
tests/nvme/012
tests/nvme/013

index 8bfad4238ddaa86faf70d8db98b7bbcb9d5aff15..94c65c107a144223bab8784b78eae653e5212283 100644 (file)
@@ -181,6 +181,7 @@ _run_fio_rand_io() {
 _run_fio_verify_io() {
        _run_fio --name=verify --rw=randwrite --direct=1 --ioengine=libaio --bs=4k \
                --iodepth=16 --verify=crc32c "$@"
+       rm -f local*verify*state
 }
 
 _fio_perf_report() {
index 9d96d7803be3da04dce94dd0d9f88b1b34a90ff5..0188e842213e8b512c76fdb5473ed5d0970a00bb 100755 (executable)
@@ -52,7 +52,6 @@ test() {
        losetup -d "${loop_dev}"
 
        rm "${file_path}"
-       rm -f local*verify*state
 
        echo "Test complete"
 }
index 06dc568fb6ea6ff085298ad2382fe415911817b1..543dbe840874f1d105c4f2dfd20e380099b1c3ca 100755 (executable)
@@ -48,7 +48,6 @@ test() {
        _remove_nvmet_port "${port}"
 
        rm "${file_path}"
-       rm -f local-write-and-verify*state
 
        echo "Test complete"
 }
index 8110430e49d4b8d1d62f54b83a6b6a65e90a3533..1dbd59804ed716239951a354f4e734563b329517 100755 (executable)
@@ -63,7 +63,6 @@ test() {
 
        losetup -d "${loop_dev}"
 
-       rm -f local*verify*state
        rm "${file_path}"
        rm -fr "${mount_dir}"
 
index 176b11b9ccb5f3a4c7cd0d449e588af31142b161..df7f23e692525e8389023ded6799846a2fbf7d36 100755 (executable)
@@ -58,7 +58,6 @@ test() {
        _remove_nvmet_subsystem "${subsys_name}"
        _remove_nvmet_port "${port}"
 
-       rm -f local*verify*state
        rm "${file_path}"
        rm -fr "${mount_dir}"