sysclt: Clarify the results of selftest run
authorJoel Granados <j.granados@samsung.com>
Tue, 21 Nov 2023 11:02:20 +0000 (12:02 +0100)
committerLuis Chamberlain <mcgrof@kernel.org>
Thu, 28 Dec 2023 12:57:57 +0000 (04:57 -0800)
commitce023757845d5bee95094fe1de948a949f52c0e4
tree62a9075e157ac41f9cba9fc9aed3628e3905fc4a
parent777740779ec5bd05eac85d9bbbb6b11457cfd238
sysclt: Clarify the results of selftest run

In some cases the result of test were hidden inside the stdout and it
was difficult to identify when a test was skipped and why.

List of changes
1. Capitalize all the words that express a test result : "OK", "SKIPPED"
   and "FAIL".
2. Place all test result text at the end of the message. This will
   prevent the result from being hidden when stdout is verbose.
3. Any other explanation that comes after the result text will be placed
   in a new line.
4. All failures are marked as "FAIL"
5. Pipped the failure to stderr in tests 8, 9, 10.
6. Replaced bogus "FAIL" with "SKIPPED" in test 0007
7. All "..." are prefixed and followed by a space.

Signed-off-by: Joel Granados <j.granados@samsung.com>
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
tools/testing/selftests/sysctl/sysctl.sh