@@ -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"