diff options
| author | Miguel Ojeda <ojeda@kernel.org> | 2026-07-19 15:07:23 +0200 |
|---|---|---|
| committer | Miguel Ojeda <ojeda@kernel.org> | 2026-08-03 08:03:24 +0200 |
| commit | fd045c81ed45517b023ea95e7b80a801c48e5463 (patch) | |
| tree | 29fb405f296a2570d10e561f817affd6cbba49f1 /rust/kernel | |
| parent | 16861ca3508e0deac70d3bcacb6dcf435b49d9ef (diff) | |
rust: rust_is_available: support testing with `bash` as `/bin/sh`
`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.
Reviewed-by: Onur Özkan <work@onurozkan.dev>
Link: https://patch.msgid.link/20260719130723.162899-1-ojeda@kernel.org
[ Added custom assertion message as suggested. - Miguel ]
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
Diffstat (limited to 'rust/kernel')
0 files changed, 0 insertions, 0 deletions
