tests: make agent tester stick around until Ctl+C

This commit is contained in:
Dan Williams
2010-12-14 15:31:53 -06:00
parent 16a8a951e9
commit 9df9abb06f

View File

@@ -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()