test: add Retries property to list-modems
authorJeevaka Badrappan <jeevaka.badrappan@elektrobit.com>
Mon, 17 Jan 2011 17:49:53 +0000 (09:49 -0800)
committerDenis Kenzior <denkenz@gmail.com>
Mon, 17 Jan 2011 23:57:11 +0000 (17:57 -0600)
test/list-modems

index 8c075ac..249ae15 100755 (executable)
@@ -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)