mirror of git://git.sysmocom.de/ofono
Update test script with more property tweaks
This commit is contained in:
parent
094fdd4e71
commit
041b192fcd
|
@ -30,15 +30,25 @@ for path in properties["Modems"]:
|
||||||
object = dbus.Interface(bus.get_object('org.ofono', path),
|
object = dbus.Interface(bus.get_object('org.ofono', path),
|
||||||
interface)
|
interface)
|
||||||
|
|
||||||
properties = object.GetProperties()
|
|
||||||
|
|
||||||
print " [ %s ]" % (interface)
|
print " [ %s ]" % (interface)
|
||||||
|
|
||||||
|
try:
|
||||||
|
properties = object.GetProperties()
|
||||||
|
except:
|
||||||
|
continue
|
||||||
|
|
||||||
for key in properties.keys():
|
for key in properties.keys():
|
||||||
if key in ["AvailableOperators", "SubscriberNumbers"]:
|
if key in ["AvailableOperators", "Calls",
|
||||||
|
"MultipartyCalls",
|
||||||
|
"EmergencyNumbers",
|
||||||
|
"SubscriberNumbers",
|
||||||
|
"ServiceDiallingNumbers"]:
|
||||||
val = ""
|
val = ""
|
||||||
for i in properties[key]:
|
for i in properties[key]:
|
||||||
val += i + " "
|
val += i + " "
|
||||||
|
elif key in ["MobileNetworkCodeLength",
|
||||||
|
"VoicemailMessageCount"]:
|
||||||
|
val = int(properties[key])
|
||||||
else:
|
else:
|
||||||
val = str(properties[key])
|
val = str(properties[key])
|
||||||
print " %s = %s" % (key, val)
|
print " %s = %s" % (key, val)
|
||||||
|
|
Loading…
Reference in New Issue