exchange

Base system with REST service to issue digital coins, run by the payment service provider
Log | Files | Refs | Submodules | README | LICENSE

commit bd83aea30e927135d41e26d939c9ff8a6a61f27b
parent cf30b4c0343f60ce29d4f90c871e4c28319cc0d1
Author: Christian Grothoff <christian@grothoff.org>
Date:   Tue, 10 Jun 2025 21:42:38 +0200

properly skip test if robocop is not found

Diffstat:
Msrc/testing/test-sanctions.sh | 12+++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)

diff --git a/src/testing/test-sanctions.sh b/src/testing/test-sanctions.sh @@ -18,6 +18,12 @@ # set -eu +# Exit, with status code "skip" (no 'real' failure) +function exit_skip() { + echo "SKIPPING: $1" + exit 77 +} + # Cleanup to run whenever we exit function my_cleanup() { @@ -32,9 +38,9 @@ function my_cleanup() fi } -echo -n "Testing for robocop" -robocop -h > /dev/null || exit_skip " robocop required" -echo " FOUND" +echo -n "Testing for robocop " +robocop -h > /dev/null 2> /dev/null || exit_skip "robocop required" +echo "FOUND" . setup.sh