Skip to content

Commit fe9b337

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 6f709cd commit fe9b337

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
@@ -1841,6 +1841,10 @@ test_lazy_prereq UNZIP '
18411841
test $? -ne 127
18421842
'
18431843

1844+
test_lazy_prereq BUSYBOX '
1845+
case "$($SHELL --help 2>&1)" in *BusyBox*) true;; *) false;; esac
1846+
'
1847+
18441848
run_with_limited_cmdline () {
18451849
(ulimit -s 128 && "$@")
18461850
}

0 commit comments

Comments
 (0)