Skip to content

Commit 5d921a1

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 684d91b commit 5d921a1

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
@@ -1215,6 +1215,10 @@ test_lazy_prereq UNZIP '
12151215
test $? -ne 127
12161216
'
12171217

1218+
test_lazy_prereq BUSYBOX '
1219+
case "$($SHELL --help 2>&1)" in *BusyBox*) true;; *) false;; esac
1220+
'
1221+
12181222
run_with_limited_cmdline () {
12191223
(ulimit -s 128 && "$@")
12201224
}

0 commit comments

Comments
 (0)