Skip to content

Commit

Permalink
test-lib: add BUSYBOX prerequisite
Browse files Browse the repository at this point in the history
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 <johannes.schindelin@gmx.de>
  • Loading branch information
dscho committed Oct 3, 2024
1 parent 9fd3a37 commit 46b9fa7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions t/test-lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1924,6 +1924,10 @@ test_lazy_prereq UNZIP '
test $? -ne 127
'

test_lazy_prereq BUSYBOX '
case "$($SHELL --help 2>&1)" in *BusyBox*) true;; *) false;; esac
'

run_with_limited_cmdline () {
(ulimit -s 128 && "$@")
}
Expand Down

0 comments on commit 46b9fa7

Please sign in to comment.