summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorandroid-build-team Robot <android-build-team-robot@google.com>2018-08-10 03:18:27 +0000
committerandroid-build-team Robot <android-build-team-robot@google.com>2018-08-10 03:18:27 +0000
commit01d6ba32c36dad6af082dbd13a92e80794edb186 (patch)
tree8cb941929d13fd698ed0ca3867e623251d970c0f
parent37da767b509caf4b94192d00527a88b3caa753b7 (diff)
parent5ee81f2c4f8f71db63566f61b1a84215ed480708 (diff)
downloadhal-pie-qpr1-s1-release.tar.gz
Change-Id: Ica9c14a7a9a70216c1280538eef147c6c69e2d3b
-rw-r--r--media/omx/V1_0/host_omxstore/VtsHalMediaOmxStoreV1_0HostTest.py14
1 files changed, 8 insertions, 6 deletions
diff --git a/media/omx/V1_0/host_omxstore/VtsHalMediaOmxStoreV1_0HostTest.py b/media/omx/V1_0/host_omxstore/VtsHalMediaOmxStoreV1_0HostTest.py
index 253d4b7b..b54a9020 100644
--- a/media/omx/V1_0/host_omxstore/VtsHalMediaOmxStoreV1_0HostTest.py
+++ b/media/omx/V1_0/host_omxstore/VtsHalMediaOmxStoreV1_0HostTest.py
@@ -307,12 +307,14 @@ class VtsHalMediaOmxStoreV1_0Host(hal_hidl_host_test.HalHidlHostTest):
'Role "' + role_name + '" has duplicates.')
queried_role = get_role(is_encoder, mime_type)
- # type and isEncoder must be known.
- asserts.assertTrue(
- queried_role,
- 'Invalid mime type "' + mime_type + '" for ' +
- ('an encoder.' if is_encoder else 'a decoder.'))
- # type and isEncoder must be consistent with role.
+ # If mime_type is not recognized, skip it.
+ if queried_role is None:
+ logging.info(
+ 'Unrecognized mime type "' +
+ mime_type + '", skipping.')
+ continue
+
+ # Otherwise, type and isEncoder must be consistent with role.
asserts.assertEqual(
role_name, queried_role,
'Role "' + role_name + '" does not match ' +