test: add Retries property to list-modems

This commit is contained in:
Jeevaka Badrappan 2011-01-17 09:49:53 -08:00 committed by Denis Kenzior
parent 37ae4832de
commit f7a8a3d914
1 changed files with 5 additions and 0 deletions

View File

@ -57,6 +57,11 @@ for path, properties in modems:
elif key in ["MainMenu"]:
val = ", ".join([ text + " (" + str(int(icon)) +
")" for text, icon in properties[key] ])
elif key in ["Retries"]:
val = ""
for i in properties[key]:
val += "[" + i + " = "
val += str(int(properties[key][i])) + "] "
else:
val = str(properties[key])
print " %s = %s" % (key, val)