[Telepathy-commits] [telepathy-salut/master] saluttest.py: wait before killing the bus if SALUT_TEST_REFDBG set as refdbg needs the process to be clearly exited

Alban Crequy alban.crequy at collabora.co.uk
Wed Oct 29 04:48:33 PDT 2008


---
 tests/twisted/saluttest.py |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/tests/twisted/saluttest.py b/tests/twisted/saluttest.py
index c5e6d31..3d41c14 100644
--- a/tests/twisted/saluttest.py
+++ b/tests/twisted/saluttest.py
@@ -7,6 +7,7 @@ import base64
 import os
 import sha
 import sys
+import time
 
 import servicetest
 import twisted
@@ -88,6 +89,11 @@ def exec_test_deferred (fun, params, protocol=None, timeout=None):
     except dbus.DBusException, e:
         pass
 
+    if 'SALUT_TEST_REFDBG' in os.environ:
+        # we have to wait that Salut timeouts so the process is properly
+        # exited and refdbg can generates its report
+        time.sleep(5.5)
+
 def exec_test(fun, params=None, protocol=None, timeout=None):
   reactor.callWhenRunning (exec_test_deferred, fun, params, protocol, timeout)
   reactor.run()
-- 
1.5.6.5




More information about the Telepathy-commits mailing list