pyocd / pyocd/pyOCD

pack subcommand should return non-zero status on error

Open
#1,130 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug cmsis-pack
Dominant language
Python
Stars
1.5k
Forks
560
Avg merge
1h 41m
Merged PRs (30d)
3

Description

pyocd pack --update generates one "ERRO" line in red and dozens of "WARN" lines. It returns a status of 0 (success). Errors and warnings should be non-zero for scripting purposes.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the implementation and tests for the pyocd pack subcommand, then reproduce pyocd pack --update with the reported error and warning output. Trace how the command handles failures and verify that an error or warning produces a non-zero status suitable for scripting.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.