• Michal Wajdeczko's avatar
    kunit: Update kunit_print_ok_not_ok function · b1eaa8b2
    Michal Wajdeczko authored
    There is no need use opaque test_or_suite pointer and is_test flag
    as we don't use anything from the suite struct. Always expect test
    pointer and use NULL as indication that provided results are from
    the suite so we can treat them differently.
    
    Since results could be from nested tests, like parameterized tests,
    add explicit level parameter to properly indent output messages and
    thus allow to reuse this function from other places.
    
    While around, remove small code duplication near skip directive.
    Signed-off-by: default avatarMichal Wajdeczko <michal.wajdeczko@intel.com>
    Cc: David Gow <davidgow@google.com>
    Cc: Rae Moar <rmoar@google.com>
    Reviewed-by: default avatarDavid Gow <davidgow@google.com>
    Signed-off-by: default avatarShuah Khan <skhan@linuxfoundation.org>
    b1eaa8b2
test.c 20.4 KB