Skip to content

Commit ff074ff

Browse files
committed
9pm.py: write test specification link separately
Prior to this patch the link to the test specification was in the header of the output (test name). Some versions of asciidoctor included this link in the INDEX, which meant clicking in the index jumped to the test specification rather than the test output. Signed-off-by: Richard Alpe <[email protected]>
1 parent ec4d23e commit ff074ff

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

9pm.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -343,10 +343,10 @@ def write_report_output(file, data, depth):
343343
for test in data['suite']:
344344

345345
if 'outfile' in test:
346+
file.write(f"\n=== {test['name']}\n")
347+
346348
if 'test-spec-sha' in test:
347-
file.write(f"\n=== <<incl-{test['test-spec-sha']},{test['name']}>>\n")
348-
else:
349-
file.write(f"\n=== {test['name']}\n")
349+
file.write(f"\n<<incl-{test['test-spec-sha']},Test Specification>>\n")
350350

351351
file.write(f"\n[[output-{test['name']}]]\n")
352352
file.write(f"----\n")

0 commit comments

Comments
 (0)