Files
mesa/.gitlab-ci/setup-test-env.sh
Antonio Ospite 5a4c1e2502 ci: fix using _section_switch and _uncollapsed_section_switch
Allow users to call `_section_switch` and `_uncollapsed_section_switch`
without previous section commands.

This can happen because `*-runner.sh` script can be composed in several
ways.

For example if `android-cts-runner.sh` is called without first calling
`cuttlefish-runner.sh`, where a `section_start` is issued, the
`uncollapsed_section_switch` command in `android-cts-runner.sh` will
fail with an error like:

  2025-07-02T08:42:33 /install/setup-test-env.sh: line 102: CURRENT_SECTION: unbound variable

Setting default empty values for `CURRENT_SECTION` makes it possible to
use the "section_switch" commands to also start a section for the first
time.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35907>
2025-07-03 12:04:40 +00:00

10 KiB
Executable File