mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 11:36:00 +00:00
Allow clearkey tests to run if no vendor modules
DRM cannot skip all tests when vendor modules are not present. Currently even the clearkey tests are skipping when there is no vendor lib. This can be replicated by just pushing the DRM VTS test binary build from master (or DR or MR) and executing the binary without VTS. All test cases skip (including clearkey). This change prevents exiting when no vendor modules are found. Test: Push the test binary and confirm that the clearkey tests run. bug:64459011 Change-Id: Ic5f554d9b223d6ca4bf26f92f072254cc18f4620
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user