tests: make agent tester stick around until Ctl+C
This commit is contained in:
@@ -59,9 +59,15 @@ def main():
|
|||||||
mainloop = gobject.MainLoop()
|
mainloop = gobject.MainLoop()
|
||||||
|
|
||||||
gobject.idle_add(register, proxy)
|
gobject.idle_add(register, proxy)
|
||||||
gobject.timeout_add_seconds(10, unregister, proxy, mainloop)
|
|
||||||
print "Running test secret agent"
|
print "Running test secret agent"
|
||||||
|
|
||||||
|
try:
|
||||||
mainloop.run()
|
mainloop.run()
|
||||||
|
except KeyboardInterrupt, e:
|
||||||
|
pass
|
||||||
|
|
||||||
|
print "Unregistering..."
|
||||||
|
unregister(proxy, mainloop);
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
Reference in New Issue
Block a user