gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[exchange] branch master updated: properly skip test if robocop is not f


From: Admin
Subject: [exchange] branch master updated: properly skip test if robocop is not found
Date: Tue, 10 Jun 2025 22:50:57 +0200

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository exchange.

The following commit(s) were added to refs/heads/master by this push:
     new bd83aea30 properly skip test if robocop is not found
bd83aea30 is described below

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

    properly skip test if robocop is not found
---
 src/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
index b2b4dcdbb..27a227d10 100755
--- 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
 

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]