`declare -x` is one way to export a variable, but there is also `export`. LAVA uses the former, while CI-tron uses the latter. LAVA always adds quotes, while CI-tron uses python's `shlex.quote()` [1] which only adds the quotes when necessary, so let's make those optional in the regex as well. [1] https://docs.python.org/3/library/shlex.html#shlex.quote Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37215>