Fix context processing test script when no gateway is provided
authorMarcel Holtmann <marcel@holtmann.org>
Tue, 10 Aug 2010 20:18:18 +0000 (16:18 -0400)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 10 Aug 2010 20:18:18 +0000 (16:18 -0400)
test/process-context-settings
test/test-voicecall

index c984240..9bdde07 100755 (executable)
@@ -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)
index 89389de..e13da3f 100755 (executable)
@@ -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()