diff --git a/test/sync_handshake.py b/test/sync_handshake.py index f1b9404..6eb8abf 100644 --- a/test/sync_handshake.py +++ b/test/sync_handshake.py @@ -32,17 +32,21 @@ def run(name): pEp.messageToSend = messageToSend ui = UserInterface() - while True: - l = minimail.recv_all(inbox, name) - for m in l: - msg = pEp.Message(m) - msg.decrypt() + try: + while True: + l = minimail.recv_all(inbox, name) + for m in l: + msg = pEp.Message(m) + msg.decrypt() + except KeyboardInterrupt: + pass if __name__=="__main__": from optparse import OptionParser optParser = OptionParser() + optParser.description = "do not run this manually" optParser.add_option("-e", "--exec-for", action="store", type="string", dest="exec_for", help="execute for name") options, args = optParser.parse_args() diff --git a/test/sync_test.py b/test/sync_test.py index 6a2a848..e34572a 100644 --- a/test/sync_test.py +++ b/test/sync_test.py @@ -62,6 +62,7 @@ if __name__ == "__main__": from optparse import OptionParser optParser = OptionParser() + optParser.description = "test runner for sync tests" optParser.add_option("-c", "--clean", action="store_true", dest="clean", help="remove all generated files") options, args = optParser.parse_args()