OSDN Git Service

Allow clearkey tests to run if no vendor modules
authorJeff Tinker <jtinker@google.com>
Thu, 17 Aug 2017 17:09:32 +0000 (10:09 -0700)
committerJeff Tinker <jtinker@google.com>
Thu, 17 Aug 2017 17:39:19 +0000 (17:39 +0000)
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

drm/1.0/vts/functional/drm_hal_vendor_test.cpp

index 5d4e7d0..1be362a 100644 (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();