All of lore.kernel.org
 help / color / mirror / Atom feed
* [LTP] [PATCH 1/2] test_robind.sh: set default FSTYPES to LTP_BIG_DEV_FS_TYPE
@ 2015-10-31  6:43 Eryu Guan
  2015-10-31  6:43 ` [LTP] [PATCH 2/2] test_robind.sh: add xfs and btrfs support Eryu Guan
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Eryu Guan @ 2015-10-31  6:43 UTC (permalink / raw)
  To: ltp

In test_robind.sh LTP_BIG_DEV is used, so use LTP_BIG_DEV_FS_TYPE as
default fs type accordingly. If LTP_BIG_DEV_FS_TYPE is not set, fall
back to ext3.

Signed-off-by: Eryu Guan <eguan@redhat.com>
---
 testcases/kernel/fs/fs_readonly/test_robind.sh | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/testcases/kernel/fs/fs_readonly/test_robind.sh b/testcases/kernel/fs/fs_readonly/test_robind.sh
index 0513275..5674ca4 100755
--- a/testcases/kernel/fs/fs_readonly/test_robind.sh
+++ b/testcases/kernel/fs/fs_readonly/test_robind.sh
@@ -123,9 +123,10 @@ setup()
 		mkdir -p $dir
 	done
 
-	# populating the default FS as ext3, if FS is not given
+	# populating the default FS as $LTP_BIG_DEV_FS_TYPE
+	# (or ext3 if it's not set), if FS is not given
 	if [ -z "$*" ]; then
-		FSTYPES="ext3"
+		FSTYPES=${LTP_BIG_DEV_FS_TYPE:-ext3}
 	else
 		FSTYPES="$*"
 	fi
-- 
2.4.3


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

end of thread, other threads:[~2015-11-09  6:55 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-31  6:43 [LTP] [PATCH 1/2] test_robind.sh: set default FSTYPES to LTP_BIG_DEV_FS_TYPE Eryu Guan
2015-10-31  6:43 ` [LTP] [PATCH 2/2] test_robind.sh: add xfs and btrfs support Eryu Guan
2015-11-05 12:20   ` Cyril Hrubis
2015-11-05 12:55     ` Eryu Guan
2015-11-05 12:22 ` [LTP] [PATCH 1/2] test_robind.sh: set default FSTYPES to LTP_BIG_DEV_FS_TYPE Cyril Hrubis
2015-11-09  6:31 ` Lei Li
2015-11-09  6:55   ` Eryu Guan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.