Skip to content

Commit a8094b3

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 3005d46 commit a8094b3

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
@@ -1901,6 +1901,10 @@ test_lazy_prereq UNZIP '
19011901
test $? -ne 127
19021902
'
19031903

1904+
test_lazy_prereq BUSYBOX '
1905+
case "$($SHELL --help 2>&1)" in *BusyBox*) true;; *) false;; esac
1906+
'
1907+
19041908
run_with_limited_cmdline () {
19051909
(ulimit -s 128 && "$@")
19061910
}

0 commit comments

Comments
 (0)