Skip to content

Commit c3823dd

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 24f64d3 commit c3823dd

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
@@ -1866,6 +1866,10 @@ test_lazy_prereq UNZIP '
18661866
test $? -ne 127
18671867
'
18681868

1869+
test_lazy_prereq BUSYBOX '
1870+
case "$($SHELL --help 2>&1)" in *BusyBox*) true;; *) false;; esac
1871+
'
1872+
18691873
run_with_limited_cmdline () {
18701874
(ulimit -s 128 && "$@")
18711875
}

0 commit comments

Comments
 (0)