Skip to content

Commit 57c1d4a

Browse files
committed
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 bfea408 commit 57c1d4a

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
@@ -1869,6 +1869,10 @@ test_lazy_prereq UNZIP '
18691869
test $? -ne 127
18701870
'
18711871

1872+
test_lazy_prereq BUSYBOX '
1873+
case "$($SHELL --help 2>&1)" in *BusyBox*) true;; *) false;; esac
1874+
'
1875+
18721876
run_with_limited_cmdline () {
18731877
(ulimit -s 128 && "$@")
18741878
}

0 commit comments

Comments
 (0)