Skip OTA test if not supported

Merge from Widevine repo of http://go/wvgerrit/142050

This is test only code.

Bug: 210690170
Change-Id: Ic982cc1ed801325146918bd6153e7f34faf31196
This commit is contained in:
Fred Gylys-Colwell
2021-12-19 07:24:07 +00:00
parent 3c7528de62
commit 2f57079f6a

View File

@@ -184,7 +184,12 @@ TEST_F(OTAKeyboxProvisioningTest, BasicTest) {
<< "Keybox valid after initialization. Skipping rest of test." << endl;
return;
}
ASSERT_EQ(result, OEMCrypto_ERROR_NEEDS_KEYBOX_PROVISIONING);
if (result != OEMCrypto_ERROR_NEEDS_KEYBOX_PROVISIONING) {
cout << " "
<< "OTA Keybox functions not supported. Skipping rest of test."
<< endl;
return;
}
cout << " "
<< "OTA Keybox functions supported. Device needs provisioning." << endl;
// TODO(fredgc): Make sure that partners can use a test cert when use_test_key