From 9df9abb06f25ea7eb07afeccbbbc24b4cc991c98 Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Tue, 14 Dec 2010 15:31:53 -0600 Subject: [PATCH] tests: make agent tester stick around until Ctl+C --- src/tests/test-secret-agent.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/tests/test-secret-agent.py b/src/tests/test-secret-agent.py index a6ae6fd77..6b9e676b3 100755 --- a/src/tests/test-secret-agent.py +++ b/src/tests/test-secret-agent.py @@ -59,9 +59,15 @@ def main(): mainloop = gobject.MainLoop() gobject.idle_add(register, proxy) - gobject.timeout_add_seconds(10, unregister, proxy, mainloop) print "Running test secret agent" - mainloop.run() + + try: + mainloop.run() + except KeyboardInterrupt, e: + pass + + print "Unregistering..." + unregister(proxy, mainloop); if __name__ == '__main__': main()