This removes the journey test helper function `with_program`, which now has zero uses. (This is done in its own commit to make it easy to revert or examine later if a use case for it ever arises in the future.)
Unified · Split
| @@ -7,21 +7,6 @@ RED="$(tput setaf 1 2>/dev/null || echo -n '')" · 6 unmodified lines | ||
| 7 | 7 | OFFSET=( ) |
| 8 | 8 | STEP=" " |
| 9 | 9 | |
| 10 | −function with_program () { | |
| 11 | − local program="${1:?}" | |
| 12 | − hash "$program" &>/dev/null || { | |
| 13 | − function expect_run () { | |
| 14 | − echo 1>&2 "${WHITE} - skipped (missing program)" | |
| 15 | − } | |
| 16 | − function expect_run_sh () { | |
| 17 | − echo 1>&2 "${WHITE} - skipped (missing program)" | |
| 18 | − } | |
| 19 | − function expect_run_sh_no_pipefail () { | |
| 20 | − echo 1>&2 "${WHITE} - skipped (missing program)" | |
| 21 | − } | |
| 22 | − } | |
| 23 | −} | |
| 24 | − | |
| 25 | 10 | function on_ci () { |
| 26 | 11 | [ -n "${CI-}" ] || { |
| 27 | 12 | function expect_run () { |