diff mbox

[v2,1/2] xfstests: fix a typo in _require_block_device()

Message ID b16ee3a4b85e6bed307f752e66c839b100df4744.1425007753.git.zhaolei@cn.fujitsu.com (mailing list archive)
State New, archived
Headers show

Commit Message

Zhaolei Feb. 27, 2015, 3:30 a.m. UTC
From: Zhao Lei <zhaolei@cn.fujitsu.com>

We need to check "$1" instead "$SCRATCH_DEV" in this function.

Changelog v1->v2:
  Use tab instead of space to fit new code style.
  Suggested by: Dave Chinner <david@fromorbit.com>

Reviewed-by: Lukas Czerner <lczerner@redhat.com>
Signed-off-by: Zhao Lei <zhaolei@cn.fujitsu.com>
---
 common/rc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/common/rc b/common/rc
index 1ed9df5..23193c8 100644
--- a/common/rc
+++ b/common/rc
@@ -1288,7 +1288,7 @@  _require_block_device()
 		echo "Usage: _require_block_device <dev>" 1>&2
 		exit 1
 	fi
-	if [ "`_is_block_dev $SCRATCH_DEV`" == "" ]; then
+	if [ "`_is_block_dev "$1"`" == "" ]; then
 		_notrun "require $1 to be valid block disk"
 	fi
 }