[roll] Roll fuchsia [ffx][discover] Add serial number to target discover output

Update `ffx target discover` to include the target's serial
number in the output if it is available. This helps identify
devices when multiple targets are discovered.

Refactor `print_device` to accept a writer to allow unit
testing of the output formatting.

Test: Added unit tests `test_print_device_with_serial` and
`test_print_device_no_serial` in `ffx_target_discover_tests`.
Run `fx test ffx_target_discover_tests --e2e`.

Original-Original-Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/1689420
Original-Original-Revision: 6f0a5b3ce723230be37abef7bb50c2b31a5ea960
GitOrigin-RevId: 112d549862c0943c3b130eef6883d1c8d6743e32
Change-Id: If15c19dab8cbab96ec64734fb41f9ab6fd1af49f
Reviewed-on: https://fuchsia-review.googlesource.com/c/integration/+/1688404
Cr-Commit-Position: refs/heads/main@{#195987}
1 file changed
tree: f8273681b65ded2e0f77234fb70a41513ee7c7ff
  1. ctf/
  2. git-hooks/
  3. infra/
  4. third_party/
  5. cobalt
  6. flower
  7. jiri.lock
  8. MILESTONE
  9. minimal
  10. prebuilts
  11. README.md
  12. stem
  13. test_durations
README.md

Integration

This repository contains Fuchsia's Global Integration manifest files.

Making changes

All changes should be made to the internal version of this repository. Our infrastructure automatically updates this version when the internal one changes.

Currently all changes must be made by a Google employee. Non-Google employees wishing to make a change can ask for assistance in one of the communication channels documented at get involved.

Obtaining the source

First install Jiri.

Next run:

$ jiri init
$ jiri import minimal https://fuchsia.googlesource.com/integration
$ jiri update

Third party

Third party projects should have their own subdirectory in ./third_party.