[Telepathy-commits] [telepathy-gabble/master] gabbletest.py: wait before killing the bus if GABBLE_TEST_REFDBG set as refdbg needs the process to be clearly exited
Guillaume Desmottes
guillaume.desmottes at collabora.co.uk
Tue Sep 30 04:33:59 PDT 2008
---
tests/twisted/gabbletest.py | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/tests/twisted/gabbletest.py b/tests/twisted/gabbletest.py
index 9d90962..6460889 100644
--- a/tests/twisted/gabbletest.py
+++ b/tests/twisted/gabbletest.py
@@ -7,6 +7,7 @@ import base64
import os
import sha
import sys
+import time
import servicetest
import twisted
@@ -328,6 +329,12 @@ def exec_test_deferred (fun, params, protocol=None, timeout=None):
d.addBoth((lambda *args: os._exit(1)))
conn.Disconnect()
+
+ if 'GABBLE_TEST_REFDBG' in os.environ:
+ # we have to wait that Gabble timeouts so the process is properly
+ # exited and refdbg can generates its report
+ time.sleep(5.5)
+
# second call destroys object
conn.Disconnect()
except dbus.DBusException, e:
--
1.5.6.5
More information about the Telepathy-commits
mailing list