Skip to content

Commit b7523ea

Browse files
dschovdye
authored andcommitted
test-lib: add BUSYBOX prerequisite
When running with BusyBox, we will want to avoid calling executables on the PATH that are implemented in BusyBox itself. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent fcccf36 commit b7523ea

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

t/test-lib.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1677,6 +1677,10 @@ test_lazy_prereq UNZIP '
16771677
test $? -ne 127
16781678
'
16791679

1680+
test_lazy_prereq BUSYBOX '
1681+
case "$($SHELL --help 2>&1)" in *BusyBox*) true;; *) false;; esac
1682+
'
1683+
16801684
run_with_limited_cmdline () {
16811685
(ulimit -s 128 && "$@")
16821686
}

0 commit comments

Comments
 (0)