mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-24 21:50:17 +01:00
tests: make agent tester stick around until Ctl+C
This commit is contained in:
parent
16a8a951e9
commit
9df9abb06f
1 changed files with 8 additions and 2 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue