Skip to content

Commit 3f2d9a9

Browse files
broonieakpm00
authored andcommitted
selftests/mm: report unique test names for each cow test
The kselftest framework uses the string logged when a test result is reported as the unique identifier for a test, using it to track test results between runs. The cow test completely fails to follow this pattern, it runs test functions repeatedly with various parameters with each result report from those functions being a string logging an error message which is fixed between runs. Since the code already logs each test uniquely before it starts refactor to also print this to a buffer, then use that name as the test result. This isn't especially pretty but is relatively straightforward and is a great help to tooling. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]> Cc: David Hildenbrand <[email protected]> Cc: Lorenzo Stoakes <[email protected]> Cc: Shuah Khan <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent 3f192af commit 3f2d9a9

File tree

1 file changed

+217
-116
lines changed
  • tools/testing/selftests/mm

1 file changed

+217
-116
lines changed

0 commit comments

Comments
 (0)