2 # SPDX-License-Identifier: GPL-2.0-or-later
3 # Copyright (c) 2020 Oracle. All Rights Reserved.
7 # Test formatting with a config file that contains conflicting options.
10 _begin_fstest auto quick mkfs
12 # Override the default cleanup function.
16 rm -f $tmp.* $def_cfgfile
19 # Import common functions.
22 # real QA test starts here
24 # Modify as appropriate.
27 _require_scratch_nocheck
28 _require_xfs_mkfs_cfgfile
30 echo "Silence is golden"
32 def_cfgfile=$TEST_DIR/a
35 cat > $def_cfgfile << ENDL
45 $MKFS_XFS_PROG -c options=$def_cfgfile -f $SCRATCH_DEV > $tmp.mkfs 2>&1
47 echo "mkfs.xfs did not fail!"