Skip to content

fix: Improve error message when failing to parse a testplan#230

Merged
rswarbrick merged 1 commit into
lowRISC:masterfrom
rswarbrick:testplan-parse-msg
Jun 4, 2026
Merged

fix: Improve error message when failing to parse a testplan#230
rswarbrick merged 1 commit into
lowRISC:masterfrom
rswarbrick:testplan-parse-msg

Conversation

@rswarbrick
Copy link
Copy Markdown
Contributor

This way, the error message at the bottom of the console log is rather more helpful. In the example I just ran:

RuntimeError: Error when parsing testplan at /home/rjs/work/opentitan/hw/top_earlgrey/data/chip_testplan.hjson: The otp_mutate field in the testplan element with name manuf_cp_unlock_raw is neither a string nor a list of strings.

This way, the error message at the bottom of the console log is rather
more helpful. In the example I just ran:

RuntimeError: Error when parsing testplan at /home/rjs/work/opentitan/hw/top_earlgrey/data/chip_testplan.hjson: The otp_mutate field in the testplan element with name manuf_cp_unlock_raw is neither a string nor a list of strings.

Signed-off-by: Rupert Swarbrick <rswarbrick@lowrisc.org>
@rswarbrick rswarbrick requested a review from machshev June 4, 2026 11:59
Copy link
Copy Markdown
Collaborator

@machshev machshev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @rswarbrick

@rswarbrick rswarbrick added this pull request to the merge queue Jun 4, 2026
Merged via the queue into lowRISC:master with commit c6ec8bb Jun 4, 2026
6 checks passed
@rswarbrick rswarbrick deleted the testplan-parse-msg branch June 4, 2026 12:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants