xfstests: make length of diff output configurable
authorDavid Sterba <dsterba@suse.cz>
Wed, 23 Jan 2013 11:14:33 +0000 (11:14 +0000)
committerRich Johnston <rjohnston@sgi.com>
Tue, 5 Mar 2013 20:42:36 +0000 (14:42 -0600)
commit6f000a96dc21c81b167038f3bccc0dd15ecbb313
tree38475fb1f23490d70f67444ecb20d6f42f93308a
parent24fef70ef3fa0be047264b7a40b0bcf86533ec22
xfstests: make length of diff output configurable

In commit 11c1d79414e2571 "xfstests: Change the diff output of failed
tests", the diff output of a failed test was hardcoded to 10 lines to
avoid overly long output and user can get the full output by manually
running the diff. However this is not always possible and convenient,
eg. in repeated automated tests where the required information is lost
after the test round finished. Then the caputred logs do not contain
enough informatin for analysis.

Introduce the DIFF_LENGTH env variable to tune the diff size, keeping it
10 as deafult and 0 to disable the limit.

Signed-off-by: David Sterba <dsterba@suse.cz>
Reviewed-by: Ben Myers <bpm@sgi.com>
Signed-off-by: Rich Johnston <rjohnston@sgi.com>
README
check