Allow clearkey tests to run if no vendor modules

am: 5db2e67293

Change-Id: I4507467925abf52954535df5a50ae7494f6b4bac
This commit is contained in:
Jeff Tinker 2017-08-18 04:07:03 +00:00 committed by android-build-merger
commit a538a0711e

View file

@ -1598,9 +1598,8 @@ int main(int argc, char** argv) {
#endif
gVendorModules = new drm_vts::VendorModules(kModulePath);
if (gVendorModules->getPathList().size() == 0) {
std::cerr << "No vendor modules found in " << kModulePath <<
", exiting" << std::endl;
exit(-1);
std::cerr << "WARNING: No vendor modules found in " << kModulePath <<
", all vendor tests will be skipped" << std::endl;
}
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();