Skip to content

Commit 48dfbd7

Browse files
dschoGit for Windows Build Agent
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 39bc60b commit 48dfbd7

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
@@ -1662,6 +1662,10 @@ test_lazy_prereq UNZIP '
16621662
test $? -ne 127
16631663
'
16641664

1665+
test_lazy_prereq BUSYBOX '
1666+
case "$($SHELL --help 2>&1)" in *BusyBox*) true;; *) false;; esac
1667+
'
1668+
16651669
run_with_limited_cmdline () {
16661670
(ulimit -s 128 && "$@")
16671671
}

0 commit comments

Comments
 (0)