kunit: subtests should be indented 4 spaces according to TAP
authorAlan Maguire <alan.maguire@oracle.com>
Thu, 26 Mar 2020 14:25:09 +0000 (14:25 +0000)
committerShuah Khan <skhan@linuxfoundation.org>
Thu, 26 Mar 2020 20:08:41 +0000 (14:08 -0600)
commitc3bba690a2643245f59a4d5d66e6b687459696d9
tree51fadd44c35c43a7a9f36ef10741432b0a13471d
parenteda8e324f70815e90360bef1032d49ef7c61e877
kunit: subtests should be indented 4 spaces according to TAP

Introduce KUNIT_SUBTEST_INDENT macro which corresponds to 4-space
indentation and KUNIT_SUBSUBTEST_INDENT macro which corresponds to
8-space indentation in line with TAP spec (e.g. see "Subtests"
section of https://node-tap.org/tap-protocol/).

Use these macros in place of one or two tabs in strings to clarify
why we are indenting.

Suggested-by: Frank Rowand <frowand.list@gmail.com>
Signed-off-by: Alan Maguire <alan.maguire@oracle.com>
Reviewed-by: Frank Rowand <frank.rowand@sony.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
include/kunit/test.h
lib/kunit/assert.c
lib/kunit/test.c
tools/testing/kunit/kunit_parser.py