* tests/test-lib.sh: Use skip_test_... in place of echo...;exit 77.
authorJim Meyering <meyering@redhat.com>
Tue, 10 Feb 2009 13:30:06 +0000 (14:30 +0100)
committerJim Meyering <meyering@redhat.com>
Tue, 10 Feb 2009 13:39:10 +0000 (14:39 +0100)
tests/test-lib.sh

index 0c04af827e02d1ee9fbadea89f2141d8437b21b8..845c4522291df1f81bc405d116f27b4daa9bf322 100644 (file)
@@ -70,10 +70,9 @@ require_controlling_input_terminal_()
   tty -s || have_input_tty=no
   test -t 0 || have_input_tty=no
   if test "$have_input_tty" = no; then
-    echo "$0: This test must have a controlling input \`terminal'," 1>&2
-    echo "  so it may not be run via \`batch', \`at', or \`rsh'." 1>&2
-    echo "  On some systems, it may not even be run in the background." 1>&2
-    (exit 77); exit 77
+    skip_test_ "This test must have a controlling input \`terminal'," \
+      "so it may not be run via \`batch', \`at', or \`rsh'." \
+      "On some systems, it may not even be run in the background."
   fi
 }