summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Ortiz <sameo@linux.intel.com>2013-11-24 23:55:41 +0100
committerSamuel Ortiz <sameo@linux.intel.com>2013-11-25 00:02:46 +0100
commit146b9cd51896f5ded3a9afb67c2afc036f1e3f04 (patch)
tree5c7ba43b48ed5c5ead6583d85d7757047afc782a
parent2110dd10a99a5b1faa6f4373a908d5ec163833d9 (diff)
downloadneard-146b9cd51896f5ded3a9afb67c2afc036f1e3f04.tar.gz
neard-146b9cd51896f5ded3a9afb67c2afc036f1e3f04.tar.bz2
neard-146b9cd51896f5ded3a9afb67c2afc036f1e3f04.zip
test: Display tag properties from the list command
-rwxr-xr-xtest/test-tag13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/test-tag b/test/test-tag
index 31576ac..3d2c226 100755
--- a/test/test-tag
+++ b/test/test-tag
@@ -53,6 +53,19 @@ if (sys.argv[1] == "list"):
print(" [ %s ]" % (path))
+ props = interfaces["org.neard.Tag"]
+
+ for (key, value) in props.items():
+ if key in ["ReadOnly"]:
+ if value == dbus.Boolean(1):
+ val = "true"
+ else:
+ val = "false"
+ print(" %s = %s" % (key, val))
+
+ else:
+ print(" %s = %s" % (key, value))
+
sys.exit(0)
if (sys.argv[1] == "dump"):