diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2010-08-10 16:18:18 -0400 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2010-08-10 16:18:18 -0400 |
commit | 945a621a2ddfc01b8bdd8936044cb7d2604e8608 (patch) | |
tree | 8ce09225b422a68f704424829b332df1d5b113ce /test | |
parent | 3d19a00cd7f69f4f8be992cd16abf1245f7fbfa6 (diff) | |
download | ofono-945a621a2ddfc01b8bdd8936044cb7d2604e8608.tar.bz2 |
Fix context processing test script when no gateway is provided
Diffstat (limited to 'test')
-rwxr-xr-x | test/process-context-settings | 5 | ||||
-rwxr-xr-x | test/test-voicecall | 2 |
2 files changed, 5 insertions, 2 deletions
diff --git a/test/process-context-settings b/test/process-context-settings index c984240f..9bdde074 100755 --- a/test/process-context-settings +++ b/test/process-context-settings @@ -39,7 +39,10 @@ for path in properties["Modems"]: interface = settings["Interface"] address = settings["Address"] - gateway = settings["Gateway"] + try: + gateway = settings["Gateway"] + except: + gateway = "0.0.0.0"; if settings["Method"] == "dhcp": print " Run DHCP on interface %s" % (interface) diff --git a/test/test-voicecall b/test/test-voicecall index 89389de9..e13da3f0 100755 --- a/test/test-voicecall +++ b/test/test-voicecall @@ -86,7 +86,7 @@ if __name__ == "__main__": call.connect_to_signal("PropertyChanged", voicecall_property_changed) - gobject.timeout_add(10000, hangup_all) + gobject.timeout_add(1000000, hangup_all) mainloop = gobject.MainLoop() mainloop.run() |