diff options
author | Theodore Ts'o <tytso@mit.edu> | 2019-06-28 18:59:07 -0400 |
---|---|---|
committer | Eryu Guan <guaneryu@gmail.com> | 2019-07-05 15:30:48 +0800 |
commit | 43df23e1b553abcd8aafcd52de677c81968bedb5 (patch) | |
tree | 1f56abb90cff56b1f2507d2fd086f95dcdf703b7 /check | |
parent | f736b1c257cad3b68324fca8ee3e2527168cd85a (diff) |
check: add ext4 group list when testing ext2 and ext3
Modern kernels use the ext4 implementation to support ext2 and ext3
mounts, and a number of the ext4 tests are actually suitable for
ext2 and ext3. We're trying to move tests out of shared anyway, so
instead of moving tests from ext4/NNN to shared, let's just include
the ext4 group list when FSTYP is ext2 or ext3.
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
Diffstat (limited to 'check')
-rwxr-xr-x | check | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -130,6 +130,7 @@ get_group_list() local grp=$1 local grpl="" local sub=$(dirname $grp) + local fsgroup="$FSTYP" if [ -n "$sub" -a "$sub" != "." -a -d "$SRC_DIR/$sub" ]; then # group is given as <subdir>/<group> (e.g. xfs/quick) @@ -138,7 +139,10 @@ get_group_list() return fi - for d in $SRC_GROUPS $FSTYP; do + if [ "$FSTYP" = ext2 -o "$FSTYP" = ext3 ]; then + fsgroup=ext4 + fi + for d in $SRC_GROUPS $fsgroup; do if ! test -d "$SRC_DIR/$d" ; then continue fi |