Skip to content

Commit 261d3a9

Browse files
committed
Fix test-spec -> test_spec in JSON output
The new report.py expects the test-spec key to be in a proper JSON compatible format. I.e., it looks for 'test_spec' rather than the old 'test-spec' used previously. This fixes the issue with missing test specification inline in the resulting PDF report. See 'Verify dynamic test-spec: <case>.adoc' for a before-after example. Signed-off-by: Joachim Wiberg <[email protected]>
1 parent 5e4e467 commit 261d3a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

9pm.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -329,8 +329,8 @@ def parse_suite(suite_path, parent_suite_path, options, settings, name=None):
329329
test_spec_path = get_test_spec_path(case['case'], settings['test-spec'])
330330
if os.path.exists(test_spec_path):
331331
vcprint(pcolor.faint, f"Found test specification: {test_spec_path} for {case['case']}")
332-
case['test-spec'] = test_spec_path
333-
case['test-spec-sha'] = calculate_sha1sum(test_spec_path)
332+
case['test_spec'] = test_spec_path
333+
case['test_spec_sha'] = calculate_sha1sum(test_spec_path)
334334
else:
335335
vcprint(pcolor.faint, f"No test specification for {case['case']} ({test_spec_path})")
336336

0 commit comments

Comments
 (0)