commit a3d59f0b2b9870ee8ee184bfb6617844891f8b57 Author: Matthew Finkel Matthew.Finkel@gmail.com Date: Wed Mar 26 05:26:07 2014 +0000
Add useful output during startup integration test --- lib/bridgedb/test/test_bridgedb.py | 4 ++++ 1 file changed, 4 insertions(+)
diff --git a/lib/bridgedb/test/test_bridgedb.py b/lib/bridgedb/test/test_bridgedb.py index 1f4470b..e73e2bc 100644 --- a/lib/bridgedb/test/test_bridgedb.py +++ b/lib/bridgedb/test/test_bridgedb.py @@ -92,10 +92,12 @@ class BridgeDBCliTest(unittest.TestCase): # Sorry Windows users devnull = open('/dev/null', 'w') bridgedbProc = Popen([bridgedbScript, '-r', runDir], stdout=devnull) + print("Waiting 30 seconds while bridgedb loads...") time.sleep(30) assignments = pjoin(runDir, 'assignments.log') self.assertTrue(os.path.isfile(assignments)) os.unlink(assignments) + print("Sending SIGHUP, checking for assignments.log ...") bridgedbProc.send_signal(signal.SIGHUP) time.sleep(5) try: @@ -105,6 +107,7 @@ class BridgeDBCliTest(unittest.TestCase): bridgedbProcCode = bridgedbProc.wait() print("`bridgedb' exited with status code %d" % int(bridgedbProcCode)) raise e + print("Sending SIGUSR1, checking for bucket files...") bridgedbProc.send_signal(signal.SIGUSR1) time.sleep(5) buckets = [['email', False], ['https', False], ['unallocated', False]] @@ -121,6 +124,7 @@ class BridgeDBCliTest(unittest.TestCase): bridgedbProcCode = bridgedbProc.wait() print("`bridgedb' exited with status code %d" % int(bridgedbProcCode)) raise e + print("Done. Killing processes.") bridgedbProc.send_signal(signal.SIGINT) bridgedbProcCode = bridgedbProc.wait() print("`bridgedb' exited with status code %d" % int(bridgedbProcCode))