@@ -28,11 +28,8 @@ requires() {
}
test() {
- local loop_dev
echo "Running ${TEST_NAME}"
- loop_dev="$(losetup -f)"
-
# In a subshell so TIMEFORMAT doesn't get clobbered.
(
TIMEFORMAT="Test took %0R seconds"
@@ -38,7 +38,6 @@ test() {
modprobe nvme-loop
local port
- local ret=0
local nvmedev
local loop_dev
local file_path="${TMPDIR}/img"
@@ -70,7 +69,7 @@ test() {
losetup -d "${loop_dev}"
rm "${file_path}"
- rm -f local*verify*state "${fio_out}"
+ rm -f local*verify*state
modprobe -r nvme_loop
modprobe -r nvmet
@@ -37,7 +37,6 @@ test() {
modprobe nvme-loop
local port
- local ret=0
local nvmedev
local file_path
local file_path="${TMPDIR}/img"
@@ -65,7 +64,7 @@ test() {
_remove_nvmet_port "${port}"
rm "${file_path}"
- rm -f local-write-and-verify*state "${fio_out}"
+ rm -f local-write-and-verify*state
modprobe -r nvme_loop
modprobe -r nvmet
@@ -38,7 +38,6 @@ test() {
modprobe nvme-loop
local port
- local ret=0
local nvmedev
local loop_dev
local mount_dir="/mnt/blktests"
@@ -38,7 +38,6 @@ test() {
modprobe nvme-loop
local port
- local ret=0
local nvmedev
local mount_dir="/mnt/blktests/"
local file_path="${TMPDIR}/img"
Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com> Cc: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com> --- tests/loop/003 | 3 --- tests/nvme/010 | 3 +-- tests/nvme/011 | 3 +-- tests/nvme/012 | 1 - tests/nvme/013 | 1 - 5 files changed, 2 insertions(+), 9 deletions(-)