Filter keybox tests with GTEST_SKIP

Bug: 288404945, 251240681
Merged from https://widevine-internal-review.googlesource.com/183630

Merged from https://widevine-internal-review.googlesource.com/183730

Change-Id: I9f6a4045f9b554589e25338accecb0d338fad5ce
This commit is contained in:
Vicky Min
2023-08-28 17:53:07 +00:00
committed by Robert Shih
parent 981c7e97d9
commit 269d1527cb
2 changed files with 13 additions and 0 deletions

View File

@@ -28,6 +28,9 @@ class CdmOtaKeyboxTest : public ::testing::Test {
}
::testing::Test::SetUp();
Properties::Init();
if (wvoec::global_features.provisioning_method != OEMCrypto_Keybox) {
GTEST_SKIP() << "Test for Prov 2.0 devices only.";
}
const ::testing::TestInfo* const test_info =
::testing::UnitTest::GetInstance()->current_test_info();
LOGD("Running test %s.%s", test_info->test_case_name(), test_info->name());