Skip to content

Commit

Permalink
Skip shell test when smtx.ti not installed
Browse files Browse the repository at this point in the history
It does not really make sense to fail the test in this case.

Signed-off-by: William Pursell <william.r.pursell@gmail.com>
  • Loading branch information
wrp committed Oct 28, 2023
1 parent ec5d79a commit 0be6b69
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test-shell
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@

export SHELL=/bin/sh
die() { echo "$*"; exit 1; } >&2
skip() { echo "$*"; exit 77; } >&2

./smtx -z && exit 1 # test invalid option
./smtx -v || exit
./smtx -h | grep -q usage: || exit
toe | grep -q '^smtx ' || die "Tests are not reliable unless smtx.ti is installed"
toe | grep -q '^smtx ' || skip "Tests are not reliable unless smtx.ti is installed"

0 comments on commit 0be6b69

Please sign in to comment.