mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-09 10:38:30 +02: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()
|
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"
|
||||||
mainloop.run()
|
|
||||||
|
try:
|
||||||
|
mainloop.run()
|
||||||
|
except KeyboardInterrupt, e:
|
||||||
|
pass
|
||||||
|
|
||||||
|
print "Unregistering..."
|
||||||
|
unregister(proxy, mainloop);
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue