mbox series

[0/4] kunit: Fix indentation of parameterized tests messages

Message ID 20230925175733.1379-1-michal.wajdeczko@intel.com
Headers show
Series kunit: Fix indentation of parameterized tests messages | expand

Message

Michal Wajdeczko Sept. 25, 2023, 5:57 p.m. UTC
The indentation of parameterized tests messages is currently broken in kunit.
Try to fix that by introducing a test level attribute, that will be increased
during nested parameterized tests execution, and use it to generate correct
indent at the runtime when printing message or writing them to the log.

Also improve kunit by providing test plan for the parameterized tests.

Cc: David Gow <davidgow@google.com>
Cc: Rae Moar <rmoar@google.com>
    
Michal Wajdeczko (4):
  kunit: Drop redundant text from suite init failure message
  kunit: Fix indentation level of suite messages
  kunit: Fix indentation of parameterized tests messages
  kunit: Prepare test plan for parameterized subtests

 include/kunit/test.h | 25 ++++++++++++--
 lib/kunit/test.c     | 79 +++++++++++++++++++++++---------------------
 2 files changed, 65 insertions(+), 39 deletions(-)