Skip to content

Commit

Permalink
block/033: additional fix
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
kawasaki committed Apr 23, 2024
1 parent c4d647b commit 2525de3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
12 changes: 6 additions & 6 deletions common/ublk
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@

. 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}"
Expand Down Expand Up @@ -40,9 +46,3 @@ _exit_ublk() {
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
2 changes: 0 additions & 2 deletions tests/block/033
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ requires() {
}

test() {
local UBLK_PROG="src/miniublk"

echo "Running ${TEST_NAME}"

if ! _init_ublk; then
Expand Down

0 comments on commit 2525de3

Please sign in to comment.