diff options
author | Mark Greer <mgreer@animalcreek.com> | 2017-03-03 10:33:48 -0700 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2017-11-10 00:44:45 +0100 |
commit | aa976f2a6ff521e398b71c20db4b9b9e650ca7bb (patch) | |
tree | f7170b37bd4e38228a10f386bf32a0b696245d5b | |
parent | d6044122ebe7a5f92d12b22299cfef9bb3826f2b (diff) | |
download | neard-aa976f2a6ff521e398b71c20db4b9b9e650ca7bb.tar.gz |
test: Add option to deactivate tag
Add the 'deactivate' option to test-tag which deactivates the
specified tag.
Signed-off-by: Mark Greer <mgreer@animalcreek.com>
-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 fd80132..cb2c9e8 100755 --- a/test/test-tag +++ b/test/test-tag @@ -11,6 +11,7 @@ def usage(): text = """ list dump <tag> +deactivate <tag> write <tag> <type> <...> If type is Text, parameters are <encoding> <language> <representation> @@ -165,5 +166,17 @@ if (sys.argv[1] == "write"): else: usage() + sys.exit(0) + +if (sys.argv[1] == "deactivate"): + print sys.argv[2] + if (len(sys.argv) != 2): + tag = neardutils.find_tag(sys.argv[2]) + tag.Deactivate() + else: + usage() + + sys.exit(0) + else: usage() |