ktest: Strip off '\n' when reading which files were modified
authorSteven Rostedt (Red Hat) <rostedt@goodmis.org>
Wed, 30 Jan 2013 17:28:15 +0000 (12:28 -0500)
committerSteven Rostedt <rostedt@goodmis.org>
Wed, 30 Jan 2013 17:28:15 +0000 (12:28 -0500)
commit35275685bf6123529e67c1dc91b8c05e479124e8
tree06622dcbb6a7d47a7b6fd679cef45bf8a31c6f74
parent319ab14f051aeb04d6da20d82b389ad875083041
ktest: Strip off '\n' when reading which files were modified

The patchcheck test looks at what files are modified for each patch it
checks and makes sure that those files do not produce any warnings.

Unfortunately, when it read the diffstat, the newlines were added on the
files and this made compares miss warnings, and commits that should not
have passed, ktest let pass.

Fix this by using the perl command "chomp" that strips off whitespace at
the end of lines.

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
tools/testing/ktest/ktest.pl