@@ -819,6 +819,8 @@ function run_section()
# print out our test configuration
echo "FSTYP -- `_full_fstyp_details`"
echo "PLATFORM -- `_full_platform_details`"
+ echo "TEST_MKFS_OPTIONS -- `_test_mkfs_options`"
+ echo "TEST_MOUNT_OPTIONS -- `_test_mount_options`"
if [ ! -z "$SCRATCH_DEV" ]; then
echo "MKFS_OPTIONS -- `_scratch_mkfs_options`"
echo "MOUNT_OPTIONS -- `_scratch_mount_options`"
@@ -235,6 +235,15 @@ _scratch_mount_options()
$SCRATCH_DEV $SCRATCH_MNT $*
}
+_test_mount_options()
+{
+ _test_options mount
+
+ export TEST_MOUNT_OPTIONS="$TEST_OPTIONS $TEST_FS_MOUNT_OPTS \
+ $SELINUX_MOUNT_OPTIONS $* $TEST_DEV $TEST_DIR"
+ echo $TEST_MOUNT_OPTIONS
+}
+
_supports_filetype()
{
local dir=$1
@@ -457,7 +466,7 @@ _test_mount()
fi
_test_options mount
- _mount -t $FSTYP$FUSE_SUBTYP $TEST_OPTIONS $TEST_FS_MOUNT_OPTS $SELINUX_MOUNT_OPTIONS $* $TEST_DEV $TEST_DIR
+ _mount -t $FSTYP$FUSE_SUBTYP `_test_mount_options $*`
mount_ret=$?
[ $mount_ret -ne 0 ] && return $mount_ret
_idmapped_mount $TEST_DEV $TEST_DIR
@@ -571,6 +580,14 @@ _metadump_dev() {
esac
}
+_test_mkfs_options()
+{
+ _test_options mkfs
+
+ export TEST_MKFS_OPTIONS="$TEST_OPTIONS $MKFS_OPTIONS $* $TEST_DEV"
+ echo $TEST_MKFS_OPTIONS
+}
+
_test_mkfs()
{
case $FSTYP in
@@ -5,6 +5,7 @@
# List of xfstests's enviroment variables to include reports
## TODO automate list population inside common/conf
REPORT_ENV_LIST=("SECTION" "FSTYP" "PLATFORM" "MKFS_OPTIONS" "MOUNT_OPTIONS" \
+ "TEST_MKFS_OPTIONS" "TEST_MOUNT_OPTIONS" \
"HOST_OPTIONS" "CHECK_OPTIONS" "XFS_MKFS_OPTIONS" \
"TIME_FACTOR" "LOAD_FACTOR" "TEST_DIR" "TEST_DEV" \
"SCRATCH_DEV" "SCRATCH_MNT" "OVL_UPPER" "OVL_LOWER" "OVL_WORK")