Skip to content

cli: report the device that actually ran in --json output - #36

Merged
jochen-testingbot merged 1 commit into
mainfrom
fix/json-device-actual
Sep 2, 2026
Merged

cli: report the device that actually ran in --json output#36
jochen-testingbot merged 1 commit into
mainfrom
fix/json-device-actual

Conversation

@jochen-testingbot

Copy link
Copy Markdown
Contributor

Found while building the GitHub Action: a run requested with --device '*' reported "device": { "name": "*" } in --json. The JSON now uses the environment the run executed on (environment.device / version), falling back to the requested capability while the run has not been allocated yet.

Test plan

  • new unit test for the wildcard case; suites green
  • lint

A run requested with a wildcard or partial device name ("*", "iPhone")
showed that request as the device in --json, which is useless in a
report. Prefer the environment the run executed on, falling back to the
capability when it is not yet known.
@jochen-testingbot
jochen-testingbot merged commit 9c80986 into main Sep 2, 2026
12 checks passed
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.

1 participant