unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
From: Rob Browning <rlb@defaultvalue.org>
To: guile-devel@gnu.org
Subject: [PATCH 6/7] check-guile.in: exit 2 on errors and direct output to stderr
Date: Fri, 25 Aug 2023 18:17:35 -0500	[thread overview]
Message-ID: <20230825231736.955507-7-rlb@defaultvalue.org> (raw)
In-Reply-To: <20230825231736.955507-1-rlb@defaultvalue.org>

Return 2 rather than 1 for errors so that 1 will be available for any
future boolean tests (as with say grep).

Direct error message to stderr rather than stdout.
---
 check-guile.in | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/check-guile.in b/check-guile.in
index 09d95a03c..31bdce340 100644
--- a/check-guile.in
+++ b/check-guile.in
@@ -29,8 +29,8 @@ if [ -f "$guile" -a -x "$guile" ] ; then
     echo "Testing $guile ..." "$@"
     echo "with GUILE_LOAD_PATH=$GUILE_LOAD_PATH"
 else
-    echo "ERROR: Cannot execute $guile"
-    exit 1
+    echo "ERROR: Cannot execute $guile" 1>&2
+    exit 2
 fi
 
 # documentation searching ignores GUILE_LOAD_PATH.
-- 
2.39.2




  parent reply	other threads:[~2023-08-25 23:17 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-25 23:17 [PATCH 0/7] Allow tests to run in parallel Rob Browning
2023-08-25 23:17 ` [PATCH 1/7] srfi-10.test: add missing (test-suite lib) dependency Rob Browning
2023-08-25 23:17 ` [PATCH 2/7] interp.test: " Rob Browning
2023-08-25 23:17 ` [PATCH 3/7] guile-test: set declarative #f to eliminate warning Rob Browning
2023-08-25 23:17 ` [PATCH 4/7] guile-test: support automake parallel test harness via --trs-file Rob Browning
2023-08-25 23:17 ` [PATCH 5/7] check-guile.in: improve quoting (e.g. paths with spaces) Rob Browning
2023-08-25 23:17 ` Rob Browning [this message]
2023-08-25 23:17 ` [PATCH 7/7] Switch to the preferred parallel automake test harness Rob Browning
2023-09-18  3:00 ` [PATCH 0/7] Allow tests to run in parallel Rob Browning

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230825231736.955507-7-rlb@defaultvalue.org \
    --to=rlb@defaultvalue.org \
    --cc=guile-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).