diff mbox

[2/2] xfstests: Add echo logic to show the information of TEST_FS_MOUNT_OPTS

Message ID 1505722270-24648-2-git-send-email-gujx@cn.fujitsu.com (mailing list archive)
State New, archived
Headers show

Commit Message

Gu Jinxiang Sept. 18, 2017, 8:11 a.m. UTC
There is message to show user the scrath mount, but no message to
point TEST_FS_MOUNT_OPTS of test mount.
Add logic to show test mount.

Signed-off-by: Gu Jinxiang <gujx@cn.fujitsu.com>
---
 check     |  1 +
 common/rc | 13 +++++++++++++
 2 files changed, 14 insertions(+)
diff mbox

Patch

diff --git a/check b/check
index f8db3cd..676b16c 100755
--- a/check
+++ b/check
@@ -579,6 +579,7 @@  for section in $HOST_OPTIONS_SECTIONS; do
 	# print out our test configuration
 	echo "FSTYP         -- `_full_fstyp_details`"
 	echo "PLATFORM      -- `_full_platform_details`"
+	echo "TEST_FS_MOUNT_OPTS -- `_test_mount_options`"
 	if [ ! -z "$SCRATCH_DEV" ]; then
 	  echo "MKFS_OPTIONS  -- `_scratch_mkfs_options`"
 	  echo "MOUNT_OPTIONS -- `_scratch_mount_options`"
diff --git a/common/rc b/common/rc
index eb9c469..1e7fee2 100644
--- a/common/rc
+++ b/common/rc
@@ -312,6 +312,19 @@  _overlay_mount_options()
 	     $OVERLAY_MOUNT_OPTIONS
 }
 
+_test_mount_options()
+{
+	_test_options mount
+
+	if [ "$FSTYP" == "overlay" ]; then
+		echo `_overlay_mount_options`
+		return 0
+	fi
+
+	echo $TEST_OPTIONS $TEST_FS_MOUNT_OPTS $SELINUX_MOUNT_OPTIONS $* \
+		$TEST_DEV $TEST_DIR
+}
+
 _scratch_mount_options()
 {
 	_scratch_options mount