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
77 OFFSET=( )
88 STEP=" "
99
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−
2510 function on_ci () {
2611 [ -n "${CI-}" ] || {
2712 function expect_run () {