[roll] Roll fuchsia [fx] Remove annoying Bash errors when running `fx self-test --all`

Running `fx set-test --all` prints a lot of annoying Bash errors
that still are ignored by the rest of the framework. This CL tries
to address two of these issues:

- First, tools/devshell/lib/platform.sh is sometimes sourced
  multiple times. Bash will complain that readonly variables
  are re-defined, so this adds a guard variable to avoid
  this.

  Given that the values computed in that file only depend
  on $OSTYPE / $MACHTYPE which should not change between
  invocations, this should be safe.

- Add mock metrics-init and track-feature-status functions
  when running tests, as these are now called unconditionally
  from scripts/fx. This resulted in Bash complaining about
  calling undefined functions.

- Modify fx-rbe-enabled to no report an error when there
  is not build directory, as this created several
  ERROR messages during tests. Note that the same test
  is already performed (and the error reported) in
  fx-read-config.

Original-Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/1000272
Original-Revision: 42eeaeb15b71470315b829e64b20977f1a32e327
GitOrigin-RevId: 6a51bd7da747eefb6bc7f7649ba443a58cb520b1
Change-Id: If233c5678d2217fb698e43976cdd5ac8a6a187ab
1 file changed
tree: 1dd1af6c630c10aba31594fdb48873cead86c612
  1. ctf/
  2. git-hooks/
  3. infra/
  4. third_party/
  5. cts
  6. firmware
  7. flower
  8. jiri.lock
  9. MILESTONE
  10. minimal
  11. prebuilts
  12. README.md
  13. stem
  14. test_durations
  15. toolchain
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 via the IRC channel #fuchsia on Freenode.

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.