[next] telepathy-mission-control: Replace MC_TEST_CURDIR with CHECK_TWISTED_CURDIR

Simon McVittie smcv at kemper.freedesktop.org
Thu Apr 3 07:27:57 PDT 2014


Module: telepathy-mission-control
Branch: next
Commit: e4cccbc89babf84714b80075f1111c7a5b7a260a
URL:    http://cgit.freedesktop.org/telepathy/telepathy-mission-control/commit/?id=e4cccbc89babf84714b80075f1111c7a5b7a260a

Author: Simon McVittie <simon.mcvittie at collabora.co.uk>
Date:   Wed Mar 26 11:58:30 2014 +0000

Replace MC_TEST_CURDIR with CHECK_TWISTED_CURDIR

This reduces the delta between MC's tests and the CMs' tests.

---

 tests/twisted/run-test.sh.in            |    6 +++---
 tests/twisted/tools/exec-with-log.sh.in |    6 +++---
 tests/twisted/tools/run-mc.sh.in        |    6 +++---
 3 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/tests/twisted/run-test.sh.in b/tests/twisted/run-test.sh.in
index d93d7be..b4d0219 100644
--- a/tests/twisted/run-test.sh.in
+++ b/tests/twisted/run-test.sh.in
@@ -13,8 +13,8 @@
 
 set -e
 
-MC_TEST_CURDIR="`pwd`"
-export MC_TEST_CURDIR
+CHECK_TWISTED_CURDIR="`pwd`"
+export CHECK_TWISTED_CURDIR
 
 if test "x$MC_TEST_UNINSTALLED" = x; then
   script_fullname=`readlink -e "@mctestsdir@/twisted/run-test.sh"`
@@ -92,7 +92,7 @@ for t in $list ; do
   i=$(( $i + 1 ))
   echo "# Testing $i/$n: $t ..."
 
-  tmp="${MC_TEST_CURDIR}/tmp-`echo $t | tr ./ __`"
+  tmp="${CHECK_TWISTED_CURDIR}/tmp-`echo $t | tr ./ __`"
   rm -fr "$tmp"
   mkdir "$tmp"
 
diff --git a/tests/twisted/tools/exec-with-log.sh.in b/tests/twisted/tools/exec-with-log.sh.in
index 6138046..e9b1e3c 100644
--- a/tests/twisted/tools/exec-with-log.sh.in
+++ b/tests/twisted/tools/exec-with-log.sh.in
@@ -22,12 +22,12 @@ G_MESSAGES_DEBUG=all
 export G_MESSAGES_DEBUG
 ulimit -c unlimited
 
-if test -z "$MC_TEST_CURDIR"; then
-        echo "MC_TEST_CURDIR must be set"
+if test -z "$CHECK_TWISTED_CURDIR"; then
+        echo "CHECK_TWISTED_CURDIR must be set"
         exit 1
 fi
 
-cd "${MC_TEST_CURDIR}" || exit 1
+cd "${CHECK_TWISTED_CURDIR}" || exit 1
 
 if test -z "$MC_TEST_LOG_DIR"; then
         echo "MC_TEST_LOG_DIR must be set"
diff --git a/tests/twisted/tools/run-mc.sh.in b/tests/twisted/tools/run-mc.sh.in
index 88b951e..aab8e97 100755
--- a/tests/twisted/tools/run-mc.sh.in
+++ b/tests/twisted/tools/run-mc.sh.in
@@ -10,11 +10,11 @@ if test -z "$MC_TEST_LOG_DIR"; then
         exit 1
 fi
 
-if test -z "$MC_TEST_CURDIR"; then
-        echo "MC_TEST_CURDIR must be set"
+if test -z "$CHECK_TWISTED_CURDIR"; then
+        echo "CHECK_TWISTED_CURDIR must be set"
         exit 1
 fi
-cd "${MC_TEST_CURDIR}" || exit 1
+cd "${CHECK_TWISTED_CURDIR}" || exit 1
 
 exec > ${MC_TEST_LOG_DIR}/missioncontrol-$$.log 2>&1
 ln -f ${MC_TEST_LOG_DIR}/missioncontrol-$$.log missioncontrol.log



More information about the telepathy-commits mailing list