kunit: rename print_subtest_{start,end} for clarity (s/subtest/suite)
authorDaniel Latypov <dlatypov@google.com>
Fri, 29 Apr 2022 18:12:56 +0000 (11:12 -0700)
committerShuah Khan <skhan@linuxfoundation.org>
Mon, 2 May 2022 18:35:39 +0000 (12:35 -0600)
commitcae56e1740f559703c94b7f4d772d873b8a01395
tree1af3aa0e009d1116c9cf303107f60e759d453137
parent9bf2eed995f9f8136f00110214c120f2d7912ad8
kunit: rename print_subtest_{start,end} for clarity (s/subtest/suite)

These names sound more general than they are.

The _end() function increments a `static int kunit_suite_counter`, so it
can only safely be called on suites, aka top-level subtests.
It would need to have a separate counter for each level of subtest to be
generic enough.

So rename it to make it clear it's only appropriate for suites.

Signed-off-by: Daniel Latypov <dlatypov@google.com>
Reviewed-by: David Gow <davidgow@google.com>
Reviewed-by: Brendan Higgins <brendanhiggins@google.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
lib/kunit/test.c