Re: [PATCH] rust: rust_is_available: support testing with `bash` as `/bin/sh`

Miguel Ojeda <[email protected]> Mon, 3 Aug 2026 08:04:31 +0200
Newsgroups gmane.linux.kernel.rust,gmane.linux.kbuild.devel
Message-ID <CANiq72nE8_7sUWOtDZMqqCTcvw4bdCX90WtY6dWTXGu9r1AKvA@mail.gmail.com>
On Sun, Jul 19, 2026 at 3:07=E2=80=AFPM Miguel Ojeda <[email protected]> wro=
te:
>
> `command -v` behaves differently on `dash` vs. `bash` when faced with
> a file without the execute bit.
>
> Thus, for the non-executable `rustc` and `bindgen` tests, support both
> possible outputs that the script currently gives.
>
> This makes the test script clean on distributions like Fedora.
>
> Signed-off-by: Miguel Ojeda <[email protected]>

Applied to `rust-next` -- thanks everyone!

    [ Added custom assertion message as suggested. - Miguel ]

Cheers,
Miguel