On Wed, Nov 11, 2015 at 04:36:30PM -0800, Tahsin Erdogan wrote: > This test watches for ext[2-4] filesystem errors in kernel messages but it > incorrectly identifies unrelated messages that contain string "error" as > a failure condition. > > Make grep pattern more specific to catch only relevant messages. > > Signed-off-by: Tahsin Erdogan <tahsin@xxxxxxxxxx> The problem is this is a "generic" test, so it will be run on file systems other than just ext[234]. So making the regexp's specific to just ext[234] is probably going to be something acceptable for xfstests upstream. (For context, the problem was that there were some kernel messages coming fom an i2c device driver that happened to be spit out while generic/310 was running, this was causing a false test failure.) Alternate possible fixes: (1) we could make an ext4 version of this test, and then make generic/310 not run for ext4. In that case we can use the EXT[234]-fs specific error. (2) we can fiter out the i2c error in generic/310 (3) we can figure out why the i2c device driver is randomly spitting out errors and ask the team responsible for that driver to fix _that_ bug (4) we can try to enumerate the file system specific error messages instead of assuming that any random kernel message that happens to contain the string "error" automatically means that there is a file system problem. We should probably do (3) no matter what, and arguably generic/310 is a badly written test and if there is some way we can do (4), that would be desirable. As a fall back, we could do (2), and see if that is acceptable for xfstests upstream. Cheers, - 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