The previous commit moved the UBLK_PROG definition from tests/ublk/rc to
common/ublk end. Move that again from common/ublk end to start. Also,
the UBLK_PROG local variable in block/033 is no longer required. Remove
it.
Signed-off-by: Shin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>
. common/shellcheck
+if which rublk > /dev/null 2>&1; then
+ export UBLK_PROG="src/rublk_wrapper.sh"
+else
+ export UBLK_PROG="src/miniublk"
+fi
+
_have_ublk() {
_have_driver ublk_drv
_have_program "${UBLK_PROG}"
udevadm settle
modprobe -r -q ublk_drv
}
-
-if which rublk > /dev/null 2>&1; then
- export UBLK_PROG="src/rublk_wrapper.sh"
-else
- export UBLK_PROG="src/miniublk"
-fi
}
test() {
- local UBLK_PROG="src/miniublk"
-
echo "Running ${TEST_NAME}"
if ! _init_ublk; then