Skip to content

Commit 761ae68

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 8d8f255 commit 761ae68

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
@@ -1917,6 +1917,10 @@ test_lazy_prereq UNZIP '
19171917
test $? -ne 127
19181918
'
19191919

1920+
test_lazy_prereq BUSYBOX '
1921+
case "$($SHELL --help 2>&1)" in *BusyBox*) true;; *) false;; esac
1922+
'
1923+
19201924
run_with_limited_cmdline () {
19211925
(ulimit -s 128 && "$@")
19221926
}

0 commit comments

Comments
 (0)