Skip to content

Commit 74a967b

Browse files
dschomjcheetham
authored andcommitted
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 016cb81 commit 74a967b

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
@@ -1897,6 +1897,10 @@ test_lazy_prereq UNZIP '
18971897
test $? -ne 127
18981898
'
18991899

1900+
test_lazy_prereq BUSYBOX '
1901+
case "$($SHELL --help 2>&1)" in *BusyBox*) true;; *) false;; esac
1902+
'
1903+
19001904
run_with_limited_cmdline () {
19011905
(ulimit -s 128 && "$@")
19021906
}

0 commit comments

Comments
 (0)