Re: [PATCH v2] fstests: add the missing _supported_fs to tests

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]



On Thu, Mar 09, 2017 at 12:26:41PM +0800, Eryu Guan wrote:
> On Wed, Mar 08, 2017 at 09:10:50PM -0500, Theodore Ts'o wrote:
> > On Thu, Mar 09, 2017 at 01:42:57AM +0800, Eryu Guan wrote:
> > > There're many tests that are missing _supported_fs check. I first
> > > noticed this by running ext4/308 under an XFS test config by
> > > accident then realized that there might be more tests missing
> > > supported fs type check.
> > 
> > Stupid question --- I had assumed that all tests in xfs/* were
> > implicitly xfs-only and all tests in btrfs/* were implicitly
> > btrfs/only, and so on.  Is that not true?
> 
> Yes, that's true if you're not specifying tests on ./check command line.
> But ./check still tries to run the tests given on command line. e.g.
> 
> 	./check -s xfs ext4/308
> 
> This rarely happens so it's not a big issue. I just happened to hit it
> and thought it'd be better to fix it :)

If you think it's better having explicit _supported_fs lines for all
tests, I don't have any strong objections; I just wonder if it's
necessary.

Today "_supported_fs generic" is a no-op.  And I wonder if we could
just simply encoding an explicit check for FSTYP must equal the test
directory name if the directory name is not "generic" or "shared" in
the check script?

> [Off topic] BTW, does the following patch look OK to you?
> 
> [PATCH] generic: require journal in shutdown tests
> 
> It skips shutdown tests on fs without journal, e.g. ext2 driving by ext4

It looks great, thanks for sending it out.  I've sent a reviewed by
under separate cover.

					- Ted
--
To unsubscribe from this list: send the line "unsubscribe fstests" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Filesystems Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux