D68391 added tests that check scenarios where no RISC-V GCC toolchain is supposed to be detected. When running the tests on RISC-V hosts the system's GCC toolchain will be detected, and the tests will fail. This patch adds a --gcc-toolchain option pointing to a path where no GCC toolchain is present, ensuring that the tests are run under the expected conditions, and therefore are able to pass in all test environments.
(I had also explored the option of checking if the found GCC toolchain actually matched the exact requested triple, but there seems to be no good way of doing that, and the test would still fail if such an exact match happened to be found anyway).