mirror of
https://git.kernel.org/pub/scm/fs/ext2/e2fsprogs.git
synced 2024-12-12 03:13:52 +08:00
f9fd342e56
The sed filters for test outputs that are used to remove build and test specific information (such as version strings, dates, times, UUIDs) were unconditionally deleting the first line of output. This would normally contain the tool version string, but in some cases contained other information that was being lost. This can lead to difficulty debugging test failures. The sed filtering has been changed to only remove the actual version strings. As well, similar filter strings were duplicated throughout many scripts, and "sed" and "tr" were often called multiple times in a pipeline. These have been consolidated into a single filter.sed file to avoid having to maintain these filters in multiple places. In a few cases, accidentally deleted messages have been restored to the expect output for the tests. In other cases, trivial whitespace has been changed in the expect files. Signed-off-by: Andreas Dilger <adilger@dilger.ca> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
20 lines
488 B
Sed
20 lines
488 B
Sed
/^[dbgumpe2fsckrsiz]* [1-9]\.[0-9]*[.-][^ ]* ([0-9]*-[A-Za-z]*-[0-9]*)/d
|
|
s/\\015//g
|
|
/automatically checked/d
|
|
/^Directory Hash Seed:/d
|
|
/Discarding device blocks/d
|
|
/^Filesystem created:/d
|
|
/^Filesystem flags:/d
|
|
/^Filesystem UUID:/d
|
|
/^JFS DEBUG:/d
|
|
/^Last write time:/d
|
|
/^Last mount time:/d
|
|
/^Last checked:/d
|
|
/^Lifetime writes:/d
|
|
/^Maximum mount count:/d
|
|
/^Next check after:/d
|
|
/Reserved blocks uid:/s/ (user .*)//
|
|
/Reserved blocks gid:/s/ (group .*)//
|
|
/whichever comes first/d
|
|
/^ Checksum /d
|