logo

utils-std

Collection of commonly available Unix tools git clone https://anongit.hacktivis.me/git/utils-std.git
commit: f02019a4496029cd95d1372fa32c2d97d629d01f
parent c9a96f1bf99b39b734de75e2446e9bcf61b19c4d
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Thu, 19 Sep 2024 11:13:57 +0200

test-cmd/tap.sh: skip testsuite when $target is missing

Diffstat:

Mtest-cmd/tap.sh5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/test-cmd/tap.sh b/test-cmd/tap.sh @@ -255,6 +255,11 @@ skip () printf 'ok %s # skip %s\n' "$count $name" "$*" } +if ! test -f "${target?}"; then + echo '1..0 # SKIP: missing executable: ' "${target?}" + exit 0 +fi + printf '1..%d\n' "$plans" trap t_end EXIT