test: Fix dump-target and dump-record print format
authorRavikumar Veeramally <ravikumar.veeramally@linux.intel.com>
Mon, 3 Oct 2011 13:32:44 +0000 (16:32 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 21 Oct 2011 06:54:06 +0000 (23:54 -0700)
test/dump-record
test/dump-target

index 2a584ec..e40850f 100755 (executable)
@@ -20,9 +20,5 @@ properties = record.GetProperties()
 print "[ %s ]" % (sys.argv[1])
 
 for key in properties.keys():
-    if key in ["Action"]:
-        val = properties[key]
-        print "      %s = %d" % (key, val)
-    else:
-        val = str(properties[key])
-        print "      %s = %s" % (key, val)
+    val = str(properties[key])
+    print "      %s = %s" % (key, val)
index 6f994a0..e5e7a34 100755 (executable)
@@ -22,12 +22,8 @@ def extract_record(key, list):
                print "        Record = [ %s ]" % (str(i))
 
                for key in properties.keys():
-                       if key in ["Action"]:
-                               val = properties[key]
-                               print "              %s = %d" % (key, val)
-                       else:
-                               val = str(properties[key])
-                               print "              %s = %s" % (key, val)
+                       val = str(properties[key])
+                       print "              %s = %s" % (key, val)
 
 target = dbus.Interface(bus.get_object("org.neard", sys.argv[1]),
                                                "org.neard.Target")