summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHsin-Yi Chen <hsinyichen@google.com>2018-04-24 10:23:08 +0800
committerHsin-Yi Chen <hsinyichen@google.com>2018-04-27 16:35:51 +0800
commit8bba91f5e679493b1ef5716459c996dd2e5cdab2 (patch)
tree1f6724b0a53be4e947debfeee3cad5086c4144b1
parent7fddc5a305f9fb9036ed8e109543db2fc4fc02fb (diff)
downloadvndk-8bba91f5e679493b1ef5716459c996dd2e5cdab2.tar.gz
Skip vtable comparison if the dumper outputs nothing
Bug: 78316564 Test: vts-tradefed run commandAndExit vts -m VtsVndkAbi Change-Id: Iab7bde191980c87effbe626dbb3e0efe0229e234
-rw-r--r--abi/VtsVndkAbiTest.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/abi/VtsVndkAbiTest.py b/abi/VtsVndkAbiTest.py
index d277073..65bf930 100644
--- a/abi/VtsVndkAbiTest.py
+++ b/abi/VtsVndkAbiTest.py
@@ -144,6 +144,11 @@ class VtsVndkAbiTest(base_test.BaseTestClass):
dump_vtables = parser.ParseVtablesFromString(dump_file.read())
lib_vtables = parser.ParseVtablesFromLibrary(lib_path)
+ # TODO(b/78316564): The dumper doesn't support SHT_ANDROID_RELA.
+ if not lib_vtables and self.run_as_compliance_test:
+ logging.warning("%s: Cannot dump vtables",
+ os.path.relpath(lib_path, self._temp_dir))
+ return []
logging.debug("%s: %s", lib_path, lib_vtables)
diff = []
for vtable, dump_symbols in dump_vtables.iteritems():