diff options
author | Samuel Ortiz <sameo@linux.intel.com> | 2013-11-24 23:55:41 +0100 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2013-11-25 00:02:46 +0100 |
commit | 146b9cd51896f5ded3a9afb67c2afc036f1e3f04 (patch) | |
tree | 5c7ba43b48ed5c5ead6583d85d7757047afc782a | |
parent | 2110dd10a99a5b1faa6f4373a908d5ec163833d9 (diff) | |
download | neard-146b9cd51896f5ded3a9afb67c2afc036f1e3f04.tar.gz neard-146b9cd51896f5ded3a9afb67c2afc036f1e3f04.tar.bz2 neard-146b9cd51896f5ded3a9afb67c2afc036f1e3f04.zip |
test: Display tag properties from the list command
-rwxr-xr-x | test/test-tag | 13 |
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"): |