Skip to content

Commit 05e176c

Browse files
committed
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.)
1 parent bc6e4be commit 05e176c

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

tests/utilities.sh

-15
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,6 @@ RED="$(tput setaf 1 2>/dev/null || echo -n '')"
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 () {

0 commit comments

Comments
 (0)