[next] telepathy-glib: run-test.sh: only run one test; don' t suppress or pollute stdout

Simon McVittie smcv at kemper.freedesktop.org
Tue Mar 25 03:45:56 PDT 2014


Module: telepathy-glib
Branch: next
Commit: 21065fd05cc0862f4bda5f5ee78b8a8eed9e8741
URL:    http://cgit.freedesktop.org/telepathy/telepathy-glib/commit/?id=21065fd05cc0862f4bda5f5ee78b8a8eed9e8741

Author: Simon McVittie <simon.mcvittie at collabora.co.uk>
Date:   Thu Mar 20 11:58:35 2014 +0000

run-test.sh: only run one test; don't suppress or pollute stdout

This is necessary if we want to be TAP-compatible.

---

 tests/dbus/run-test.sh.in |   14 ++++++--------
 1 file changed, 6 insertions(+), 8 deletions(-)

diff --git a/tests/dbus/run-test.sh.in b/tests/dbus/run-test.sh.in
index c9ecb6c..0628262 100644
--- a/tests/dbus/run-test.sh.in
+++ b/tests/dbus/run-test.sh.in
@@ -2,7 +2,7 @@
 
 script_fullname=`readlink -e "@tpglibtestsdir@/run-test.sh"`
 if [ `readlink -e "$0"` != "$script_fullname" ] ; then
-  echo "This script is meant to be installed at $script_fullname"
+  echo "This script is meant to be installed at $script_fullname" >&2
   exit 1
 fi
 
@@ -23,15 +23,13 @@ export GSETTINGS_BACKEND
 DBUS_SESSION_BUS_ADDRESS=this-is-clearly-not-valid
 export DBUS_SESSION_BUS_ADDRESS
 
+
 if [ -n "$1" ] ; then
-  list="$1"
+  testname="$1"
+  shift
 else
-  echo "Usage: $0 testname"
+  echo "Usage: $0 testname" >&2
   exit 1
 fi
 
-for i in $list ; do 
-  echo "Testing $i"
-  @tpglibtestsdir@/tools/test-wrapper.sh @tpglibtestsdir@/$i
-done
-
+exec "@tpglibtestsdir@/$testname" --tap "$@"



More information about the telepathy-commits mailing list