[pytango] 67/122: Update test context

Sandor Bodo-Merle sbodomerle-guest at moszumanska.debian.org
Thu Sep 28 19:18:19 UTC 2017


This is an automated email from the git hooks/post-receive script.

sbodomerle-guest pushed a commit to tag v9.2.1
in repository pytango.

commit 5446b8ba219ddbbe9a88c8a2aab556b8432a6ef6
Author: Vincent Michel <vincent.michel at maxlab.lu.se>
Date:   Wed Oct 12 18:49:50 2016 +0200

    Update test context
---
 tango/test_context.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/tango/test_context.py b/tango/test_context.py
index 9f2dc97..3139646 100644
--- a/tango/test_context.py
+++ b/tango/test_context.py
@@ -79,7 +79,7 @@ class DeviceTestContext(object):
 
     def __init__(self, device, device_cls=None, server_name=None,
                  instance_name=None, device_name=None, properties={},
-                 db=None, port=0, debug=5, daemon=False, process=False):
+                 db=None, port=0, debug=3, daemon=False, process=False):
         """Inititalize the context to run a given device."""
         # Argument
         tangoclass = device.__name__
@@ -156,6 +156,9 @@ class DeviceTestContext(object):
 
     @retry(connect_time, [ConnectionFailed, DevFailed])
     def connect(self):
+        if not self.thread.is_alive():
+            raise RuntimeError(
+                'The server did not start. Check stdout for more information.')
         self.device = DeviceProxy(self.get_device_access())
         self.device.ping()
         self.server = DeviceProxy(self.get_server_access())

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/pytango.git



More information about the debian-science-commits mailing list