OSDN Git Service

test: Print fd_properties in test-profile
authorJohan Hedberg <johan.hedberg@intel.com>
Tue, 13 Nov 2012 08:24:58 +0000 (10:24 +0200)
committerJohan Hedberg <johan.hedberg@intel.com>
Tue, 13 Nov 2012 08:24:58 +0000 (10:24 +0200)
test/test-profile

index 7cfc376..46879d0 100755 (executable)
@@ -28,6 +28,9 @@ class Profile(dbus.service.Object):
        def NewConnection(self, path, fd, properties):
                fd = fd.take()
                print("NewConnection(%s, %d)" % (path, fd))
+               for key in properties.keys():
+                       print("  %s = %s" % key, properties[key])
+
                os.close(fd)
 
 if __name__ == '__main__':