From 945a621a2ddfc01b8bdd8936044cb7d2604e8608 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Tue, 10 Aug 2010 16:18:18 -0400 Subject: Fix context processing test script when no gateway is provided --- test/process-context-settings | 5 ++++- test/test-voicecall | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'test') 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() -- cgit v1.2.3