History

Remove the `with_program` helper

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.)

Eliah Kagan committed 2 years ago

Commit 05e176c1 parent bc6e4be1 file · +0 −15Browse files

Unified · Split

tests/utilities.sh+0−15
@@ -7,21 +7,6 @@ RED="$(tput setaf 1 2>/dev/null || echo -n '')" · 6 unmodified lines
7OFFSET=( )7OFFSET=( )
8STEP=" "8STEP=" "
9 9
10function 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
25function on_ci () {10function on_ci () {
26 [ -n "${CI-}" ] || {11 [ -n "${CI-}" ] || {
27 function expect_run () {12 function expect_run () {