Skip RenewOnLicenseLoad test when not viable

The feature RenewOnLicenseLoad is not expected to work for an offline
license when the device has no usage table.


Bug: 310498829
Change-Id: I601c332ed6cd17f9682082ea6acda7e67492b381
This commit is contained in:
Fred Gylys-Colwell
2024-02-02 14:08:06 -08:00
committed by Rahul Frias
parent ca20d3255e
commit 0971a805f0

View File

@@ -1576,6 +1576,9 @@ class CdmUseCase_RenewOnLicenseLoad : public RenewalTest {
GTEST_SKIP() << "Renew on License Load supported on v18+ servers and " GTEST_SKIP() << "Renew on License Load supported on v18+ servers and "
"devices only."; "devices only.";
} }
if (license_holder_.can_persist() && !wvoec::global_features.usage_table) {
GTEST_SKIP() << "Renew on License Load requires a usage table for offline licenses.";
}
} }
uint64_t renewal_cutoff_; uint64_t renewal_cutoff_;