From 129ec4dff78c5eb8294b0a104ab0e449e10b1fb8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florent=20Thi=C3=A9ry?= <florent.thiery@ubicast.eu> Date: Fri, 24 Feb 2017 09:42:55 +0100 Subject: [PATCH] fix error, refs #20596 --- tests/test_mediaworker.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/test_mediaworker.py b/tests/test_mediaworker.py index aa8b3aad..74db20dc 100755 --- a/tests/test_mediaworker.py +++ b/tests/test_mediaworker.py @@ -51,7 +51,10 @@ def check_celerity_connectivity(ip): h = conf.get('MS_SERVER_NAME') cmd = "ssh %s curl -k https://%s:6200" % (ip, h) print('Checking celerity connectivity: %s' % cmd) - d = subprocess.check_output(cmd, shell=True, timeout=5) + try: + d = subprocess.check_output(cmd, shell=True, timeout=5) + except exception: + d = '' if "Celerity tasks server" in d: print('%sSuccessfully reached tasks server%s' % (GREEN, DEF)) return True -- GitLab