[next] telepathy-gabble: Remove GABBLE_TWISTED_PATH, use G_TEST_SRCDIR
Simon McVittie
smcv at kemper.freedesktop.org
Thu Apr 3 07:26:40 PDT 2014
Module: telepathy-gabble
Branch: next
Commit: fd617b3eb50bdf9b5e54901681e1408aa0949354
URL: http://cgit.freedesktop.org/telepathy/telepathy-gabble/commit/?id=fd617b3eb50bdf9b5e54901681e1408aa0949354
Author: Simon McVittie <simon.mcvittie at collabora.co.uk>
Date: Wed Mar 26 12:36:17 2014 +0000
Remove GABBLE_TWISTED_PATH, use G_TEST_SRCDIR
---
tests/twisted/run-test.sh.in | 6 ------
tests/twisted/tls/server-tls-channel.py | 4 ++--
2 files changed, 2 insertions(+), 8 deletions(-)
diff --git a/tests/twisted/run-test.sh.in b/tests/twisted/run-test.sh.in
index 29d27ae..20dafc0 100644
--- a/tests/twisted/run-test.sh.in
+++ b/tests/twisted/run-test.sh.in
@@ -16,9 +16,6 @@ if test "x$GABBLE_TEST_UNINSTALLED" = x; then
PYTHONPATH="@twistedtestsdir@:@twistedtestsdir@/jingle"
export PYTHONPATH
-
- GABBLE_TWISTED_PATH="@twistedtestsdir@"
- export GABBLE_TWISTED_PATH
else
if test -z "$G_TEST_SRCDIR"; then
echo "G_TEST_SRCDIR must be set" >&2
@@ -35,9 +32,6 @@ else
PYTHONPATH="$PYTHONPATH:${G_TEST_SRCDIR}/jingle"
PYTHONPATH="$PYTHONPATH:${G_TEST_BUILDDIR}/jingle"
export PYTHONPATH
-
- GABBLE_TWISTED_PATH="${G_TEST_SRCDIR}"
- export GABBLE_TWISTED_PATH
fi
if [ -n "$1" ] ; then
diff --git a/tests/twisted/tls/server-tls-channel.py b/tests/twisted/tls/server-tls-channel.py
index fb2d2d8..0e09fb5 100644
--- a/tests/twisted/tls/server-tls-channel.py
+++ b/tests/twisted/tls/server-tls-channel.py
@@ -34,8 +34,8 @@ JID = "test at example.org"
# the files are copied from wocky/tests/certs/tls-[cert,key].pem
CA_CERT_HOSTNAME = 'weasel-juice.org'
-CA_CERT = os.environ.get('GABBLE_TWISTED_PATH', '.') + '/tls-cert.pem'
-CA_KEY = os.environ.get('GABBLE_TWISTED_PATH', '.') + '/tls-key.pem'
+CA_CERT = os.environ.get('G_TEST_SRCDIR', '.') + '/tls-cert.pem'
+CA_KEY = os.environ.get('G_TEST_SRCDIR', '.') + '/tls-key.pem'
class TlsAuthenticator(XmppAuthenticator):
def __init__(self, username, password, resource=None):
More information about the telepathy-commits
mailing list