Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Documentation: dev-tools: use literal block instead of code-block

KTAP Specification: Change code-block directives to straightforward
literal blocks since the blocks do not contain code.

Suggested-by: Jonathan Corbet <corbet@lwn.net>
Signed-off-by: Frank Rowand <frank.rowand@sony.com>
Reviewed-by: David Gow <davidgow@google.com>
Link: https://lore.kernel.org/r/20220316202622.324866-3-frowand.list@gmail.com
Signed-off-by: Jonathan Corbet <corbet@lwn.net>

authored by

Frank Rowand and committed by
Jonathan Corbet
62ce577b f5cc4163

+8 -10
+8 -10
Documentation/dev-tools/ktap.rst
··· 115 115 directive nor any diagnostic data do not need to include the "#" field 116 116 separator. 117 117 118 - Example result lines include: 119 - 120 - .. code-block:: none 118 + Example result lines include:: 121 119 122 120 ok 1 test_case_name 123 121 124 122 The test "test_case_name" passed. 125 123 126 - .. code-block:: none 124 + :: 127 125 128 126 not ok 1 test_case_name 129 127 130 128 The test "test_case_name" failed. 131 129 132 - .. code-block:: none 130 + :: 133 131 134 132 ok 1 test # SKIP necessary dependency unavailable 135 133 136 134 The test "test" was SKIPPED with the diagnostic message "necessary dependency 137 135 unavailable". 138 136 139 - .. code-block:: none 137 + :: 140 138 141 139 not ok 1 test # TIMEOUT 30 seconds 142 140 143 141 The test "test" timed out, with diagnostic data "30 seconds". 144 142 145 - .. code-block:: none 143 + :: 146 144 147 145 ok 5 check return code # rcode=0 148 146 ··· 200 202 201 203 An example of a test with two nested subtests: 202 204 203 - .. code-block:: none 205 + :: 204 206 205 207 KTAP version 1 206 208 1..1 ··· 213 215 214 216 An example format with multiple levels of nested testing: 215 217 216 - .. code-block:: none 218 + :: 217 219 218 220 KTAP version 1 219 221 1..2 ··· 248 250 249 251 Example KTAP output 250 252 -------------------- 251 - .. code-block:: none 253 + :: 252 254 253 255 KTAP version 1 254 256 1..1