FS/XFS testing framework
 help / color / mirror / Atom feed
* [PATCH v2 1/2] xfstests: fix a typo in _require_block_device()
@ 2015-02-26 10:38 Zhaolei
  2015-02-26 10:38 ` [PATCH v3 2/2] Fix warning of "Usage: _is_block_dev dev" Zhaolei
  2015-02-26 10:45 ` [PATCH v2 1/2] xfstests: fix a typo in _require_block_device() Lukáš Czerner
  0 siblings, 2 replies; 9+ messages in thread
From: Zhaolei @ 2015-02-26 10:38 UTC (permalink / raw)
  To: fstests; +Cc: Zhao Lei

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>

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

diff --git a/common/rc b/common/rc
index 1ed9df5..5a8c74d 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
 }
-- 
1.8.5.1


^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2015-02-27  9:45 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-26 10:38 [PATCH v2 1/2] xfstests: fix a typo in _require_block_device() Zhaolei
2015-02-26 10:38 ` [PATCH v3 2/2] Fix warning of "Usage: _is_block_dev dev" Zhaolei
2015-02-26 11:29   ` Lukáš Czerner
2015-02-26 12:26     ` Zhao Lei
2015-02-26 13:36       ` Lukáš Czerner
2015-02-27  1:51         ` Zhao Lei
2015-02-27  9:45           ` Lukáš Czerner
2015-02-26 10:45 ` [PATCH v2 1/2] xfstests: fix a typo in _require_block_device() Lukáš Czerner
2015-02-26 13:38   ` Lukáš Czerner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox