summaryrefslogtreecommitdiffstats
path: root/tests/custodia.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/custodia.py')
-rw-r--r--tests/custodia.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/custodia.py b/tests/custodia.py
index ed80010..dc4a662 100644
--- a/tests/custodia.py
+++ b/tests/custodia.py
@@ -26,8 +26,11 @@ class CustodiaTests(unittest.TestCase):
with (open('testlog.txt', 'a')) as logfile:
p = subprocess.Popen([pexec, 'custodia/custodia'], env=env,
stdout=logfile, stderr=logfile)
- cls.custodia_process = p
time.sleep(1)
+ if p.poll() is not None:
+ raise AssertionError(
+ "Premature termination of Custodia server, see testlog.txt")
+ cls.custodia_process = p
cls.client = CustodiaClient('http+unix://%2E%2Fserver_socket/secrets')
cls.client.headers['REMOTE_USER'] = 'test'
cls.fwd = CustodiaClient('http+unix://%2E%2Fserver_socket/forwarder')